Results 1 to 3 of 3

Thread: SSI: Placement of file to include

  1. #1

    SSI: Placement of file to include

    Does the file that is to be included need to be in the same folder as the page that calls it? If, no, is there a special way that it needs to be written? The two ways I have tried are not working.

    <!--#include file="../../valid.txt"-->
    <!--#include file="http://www.xecu.net/fantasy/valid.txt"-->

    I would prefer to use the first, but since it isn't working, I don't know what to do.
    Lady Aleena

    Mistress of Fantasy's Realm, Lady of the Grey, Bytesaver, wayward daughter of WXity!
    I'm learning Perl. I don't have PHP, ASP, and MySQL.
    Find me on Twitter.

  2. #2
    Moderator
    Canada Herb's Avatar
    Join Date
    Dec 1999
    Location
    Saarbrücken, Germany
    Posts
    1,478
    Hi,

    try <!--#include virtual="path" -->

    See here for details.

    Herb

  3. #3
    Thank you Herb. That solved my problem beautifully!
    I may be back with more questions once I finish reading the page you suggested.
    Lady Aleena

    Mistress of Fantasy's Realm, Lady of the Grey, Bytesaver, wayward daughter of WXity!
    I'm learning Perl. I don't have PHP, ASP, and MySQL.
    Find me on Twitter.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. SSI include file help
    By mrdeleigh in forum Server-side technologies
    Replies: 1
    Last Post: 17th July 2012, 22:56
  2. Problem with file, file_get_contents and include in PHP 5
    By Debbie-Leigh in forum Server-side Forum
    Replies: 3
    Last Post: 6th February 2008, 00:34
  3. global.asa vs include file
    By Vera L. C. Pincerato in forum Server-side Forum
    Replies: 6
    Last Post: 13th January 2002, 00:24
  4. Include file
    By Vera L. C. Pincerato in forum Server-side Forum
    Replies: 5
    Last Post: 24th July 2001, 21:42
  5. js include file
    By Lokiz in forum Client-side forum
    Replies: 3
    Last Post: 31st January 2001, 15:30

Bookmarks

Posting Permissions

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