You are here: path specification on Windows Servers « All PHP « IT news, forums, messages
path specification on Windows Servers

Posted by dorayme on 06/17/07 06:22

For many web sites hosted on Unix servers I use (happily) a
construction like this for includes:

<?php include ($_SERVER['DOCUMENT_ROOT'].'/includes/footer.inc');
?>

But this does not work on Windows servers and it has always been
a puzzle to me (yes, I have asked here and elsewhere before about
the matter. I seem not to have appreciated any advice given, or I
have forgotten it). Anyone know a reliable way to state the path
absolutely on a Windows server so I can use the same construction
on each page with assurance the server can find the folder which
contains all the includes?

--
dorayme

 

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

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