[devtalk] ssi virtual - site check please
David Precious
davidp at preshweb.co.uk
Sat Oct 3 17:53:30 BST 2009
joseph harris wrote:
> From: "David Precious"
>> joseph harris wrote:
>>> Thanks, Patrick. Part of my trouble was wanting to use the same text
>>> file for all folders, or rather the same SSI instruction. I've set up
>>> a second text file for all sub folders since they need a different
>>> src.
>> Why? Assuming they're all trying to call the same image, why do you need
>> two separate files?
> What I seem to face is this:
> SSI calls text file
> shmtl in main folder calls image in text file from sub-folder
> shtml in sub folder calls image from sister folder.
>
> Using EasyPHP and testing in html-kit I could not find a common format.
>
> main folder text has SRC="images/pound_page_head3.gif" called by <!--#include virtual="sitepagehead.txt"-->
>
> subfolder text has src="../images/pound_page_head3.gif" called by <!--#include virtual="../sitepageheadotherfolders.txt"--> [text file is in main folder]
Ugh.
Just call it with a full path from the root, e.g.
src="/images/pound_page_head3.gif", and all will be well.
Same goes for the SSI includes, too.
Cheers
Dave P
More information about the devtalk
mailing list