PDA

View Full Version : Ssi


frequencypro
5-15-02, 12:06 AM
Can you have a SSI tag point to a file in another folder? I've tried, but have been unsuccessful, this is what I've tried:

<!--#include file="/____/file.html" -->

It gets kind of irritating to have to put the file in every folder.

xero-infinity
5-15-02, 12:08 AM
I know what with PHP you can put <? include("folder/file.txt"); ?> or whatever. So, I'm pretty sure it would work the same with .shtml.

MannInc
5-15-02, 01:27 AM
I'm not sure if this would work as I don't really use SSI, but PHP:

<!--#include file="/www/ui/username/htdocs/file.html" -->

or maybe <!--#include file="http://www.yoursite.com/file.html" -->

frequencypro
5-15-02, 02:29 AM
Originally posted by MannInc
<!--#include file="/www/ui/username/htdocs/file.html" -->

or maybe <!--#include file="http://www.yoursite.com/file.html" -->

Neither of them worked... but thanks

(jj)
5-15-02, 02:10 PM
You can have your files in different directories and use SSI if you use the "virtual" include.

Like this

<!--#include virtual="/files/file.shtml"-->

and should work fine if you used

<!--#include virtual="/files/file.html"-->

but to span across different directories, you must use the "virtual" command.

Just my "For What It's Worth"