Reply to OT. Windows server paths and PHP includes

Your name:

Reply:


Posted by dorayme on 06/17/07 09:21

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. Does anyone know a
likely other candidate expression that will tell the server to go
to the level at which I have the site index file and look inside
a folder called 'includes'? No matter where it appears deep
inside the website directories?

It sort of spoils the point to be tailoring each path to where
the html file happens to be with "../"s (which, of course,
"works").

I know, I have wondered about this before and never really got
anywhere. Seem unable to have used any previous remarks to
advantage or have now forgotten them.

--
dorayme

[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

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