PDA

View Full Version : SSI question


Mandi
02-27-1999, 06:47 AM
I plunged ahead and tried an .shtml page in a directory below the root directory (I'll just accept that valor medal now, thanks - hehe http://www.aota.net/ubb/smile.gif) and it didn't call the .txt file from the root directory with the command "../whatever.txt" Thinking perhaps I only had a tenuous grasp of using "../" type commands, I substituted the whole darn URL for the whatever.txt file . . .no dice. It works fine if I copy whatever.txt into that subdirectory of course, and call it by it's given name. Am I really going to have to do this for each directory, or am I overlooking an obvious problem here? Feel free to point out my tenuous grasp of the obvious, LOL . . .

Deb
02-27-1999, 06:59 AM
Would you like the gold or purple medal? http://www.aota.net/ubb/wink.gif

Are you using
<!--#include virtual="...
or <!--#include file="...??

virtual is for calling the files from a different directory... file will look in the same directory...

If this doesn't help... paste the line you used here and we'll go from there http://www.aota.net/ubb/smile.gif

Deb

Justin
02-27-1999, 07:00 AM
If it's not in the same directory, use:

<!--#include virtual="/path/to/whatever.txt" -->

If it's below the root, as in /big/dom/xdomain/whatever.txt that won't work. I just tried it.

If you mean that whatever.txt is in a subdirectory, then just supply the virtual path, eg:

in www.domain.com/test/index.shtml

<!--#include virtual="/whatever.txt" -->

to include a file in the root dir. You can't supply a URL or a full path, just a virtual path. Hence the name http://www.aota.net/ubb/smile.gif

Hope this helps.


------------------
Justin Nelson, SFE Software
www.vdj.net (http://www.vdj.net)
The individual formerly known as SFE Inc.

Justin
02-27-1999, 07:01 AM
Ya beat me to it, Deb http://www.aota.net/ubb/smile.gif

Mandi
02-27-1999, 07:10 AM
Y'all (<--I can say that now that I have officially lived in Texas for a year . . .) are just too smart . . . thanks from the smarty-pants wannabee . . .LOL . .