Reply to Re: Path for SSI in htm file

Your name:

Reply:


Posted by Jonathan N. Little on 04/03/07 22:11

Joe (GKF) wrote:
<snip>
> <!--#include virtual="/folder0/anotherfile.txt" -->
> The virtual argument is used to begin the search for files from the ROOT
> level.
>

Not sure what you mean there. Using a leading "/" will put it into the
Document Root, not the absolute root, whatever is set be the webserver.

If "public_html" is the Document Root then

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


will mean "some.file" is in the "public_html" folder. On the file system
"public_html" may be "/var/www/clientsites/example.com/public_html"

If OP's "public_html" is his Document Root, rather than fussing with the
relative path just go absolute from Document Root and be done with it,
then it won't matter where the calling SHTML doc is.

<!--#include virtual="/text_files_folder/show_this_file.txt" -->


--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

[Back to original 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

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