Posted by Jonathan N. Little on 04/01/07 13:02
Poten Tate wrote:
> I'm on an apache server and am using the xbithack directive in my .htaccess
> file. Here's how I use an include file (SSI) in my htm file--
>
> <!--#include file="./thefile.txt" -->
>
> It works perfectly.
>
> The ./ means "thefile.txt" is in the same directory as the htm file that
> contains the SSI. Here's where the htm file is--
>
> public_html/folder1/folder2/htm_file.htm
>
> For the life of me I can't figure how to go back 2 folders to--
>
> public_html/folder0/anotherfile.txt
>
> I've tried--
>
> <!--#include file="/../../folder0/anotherfile.txt" --> and--
Well, a leading "/" above the root which will not be correct, what you
want is up 3 to "public_html" then down one "folder0"
>
> <!--#include file="../../folder0/anotherfile.txt"-->
>
> and lots of other paths but can't get it to work. Does anyone know the
> correct syntax? Thanks.
>
<!--#include file="../../../folder0/anotherfile.txt" -->
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Navigation:
[Reply to this message]
|