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

Posted by Poten Tate on 04/01/07 03:09

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--

<!--#include file="../../folder0/anotherfile.txt"-->

and lots of other paths but can't get it to work. Does anyone know the
correct syntax? Thanks.

 

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

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