You are here: Re: Path for SSI in htm file « HTML « IT news, forums, messages
Re: Path for SSI in htm file

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация