Results 1 to 7 of 7

Thread: Include file

  1. #1
    Join Date
    Nov 2005
    Posts
    4

    Unanswered: Include file

    How can I include a file that is one folder up from the file that wishes to use it? Thx.

  2. #2
    Join Date
    Nov 2005
    Posts
    4

    Question

    [QUOTE=tigga12]How can I include a file that is one folder up from the file that wishes to use it? Thx.

  3. #3
    Join Date
    Nov 2005
    Posts
    4

    Question includes

    How can I include a file that is one folder up from the file that wishes to use it? Thx.

  4. #4
    Join Date
    Oct 2005
    Posts
    178
    Quote Originally Posted by tigga12
    How can I include a file that is one folder up from the file that wishes to use it? Thx.
    Generally in your current running application directory level you use ./thisfile.xxx and to go back up level you add another dot like ../anotherfile.xxx and so forth or use the complete path is safer like //server/higherDirectory/CurrentDirectory/thisfile.xxx. to go up one level //server/higherDirectory/anotherfile.xxx
    Last edited by fredservillon; 11-11-05 at 17:28.

  5. #5
    Join Date
    Mar 2003
    Location
    Atlanta, GA
    Posts
    191
    <!--#INCLUDE FILE="../filename.asp"-->
    Tim

  6. #6
    Join Date
    Nov 2003
    Location
    Christchurch, New Zealand
    Posts
    1,618
    Depending on how the site is set up you might need to enable access to parent paths in IIS.

  7. #7
    Join Date
    Nov 2005
    Posts
    20
    <!--#INCLUDE FILE="../filename.asp"-->
    Sometimes my includes will not work with "FILE", so I have to use "VIRTUAL" instead. So, your include will look like this:

    Code:
    <!--#INCLUDE VIRTUAL="/filename.asp"-->
    Programming/Web Design
    http://eofficeprofessionals.com/forums

    Offer solutions-not criticism.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •