PDA

View Full Version : SSI Question


cheatindex
11-30-1999, 05:19 PM
Hi.

I am trying to use SSI in my site. Here is my problem. I have my menu file entitled legend.shtml in the root directory:

/legend.shtml

and in one of the directories, I want to use the "include" command to attach the file:

/test/content.shtml

Now. When I move the legend.shtml file into the "test" directory, all I have to do is use the command:

<!--#include file= &quot;legend.shtml&quot; -->

which works. But what do I do if I want to leave the directory file in the root directory and access it through the &quot;test&quot; directory. I figured it would be:

<!--#include file= &quot;../legend.shtml&quot; -->

but that didn't work. Please, if anyone can help me, post the message. I am clearly NOT a technical person, so any help would be greatly appreciated. Thanx.

Justin
11-30-1999, 05:58 PM
<!--#include virtual=&quot;/path/to/file.shtml&quot; -->

Hope this helps :)

------------------
Justin Nelson
FutureQuest Support

Shalazar
12-30-1999, 01:12 AM
Remember, <!--#include file=&quot;&quot; --> only works when the file you wish to include is located in the same directory as the file to which you are calling it!

<!--#include virtual=&quot;&quot; --> allows you to specify a path to a file elsewhere in your directory structure.[nbsp][nbsp]It can achieve the same thing as above, and extends your capabilities way beyond the restrictions of #include file.
------------------
------------
Shalazar

webmaster
www.charisma-carpenter.com (http://www.charisma-carpenter.com)
The Internet's Premier site for everything Charisma.