Reply to Re: [PHP] Document root, preferred way to find it???

Your name:

Reply:


Posted by Leif Gregory on 03/04/05 22:47

Hello Richard,

Friday, March 4, 2005, 1:25:35 PM, you wrote:
R> If *those* are broken, you might as well just not use that host.
R> :-^

Your solution seems to be pretty bulletproof. I definitely appreciate
it. Just wondering though for posterity sake, have you or anyone ever
run into a host that had both $_SERVER['path_translated'] and
$_SERVER{'documentRoot'] broke? I've seen $_SERVER{'documentRoot'] not
being correct, but has anyone seen it not correct and not having
$_SERVER['path_translated'] available? Previously, when I saw
$_SERVER['documentroot'] incorrect, I didn't know about
$_SERVER['path_translated'] so I don't know if it was good or not.


R> It's a bit of a hack, but cuts the number of config files to one
R> (1) for a transfer/install.

Looks like it'll work. Thanks. Maybe one day the people at PHP will
fix it so we don't have to work around it.


--
Leif (TB lists moderator and fellow end user).

Using The Bat! 3.0.2.3 Rush under Windows XP 5.1
Build 2600 Service Pack 2 on a Pentium 4 2GHz with 512MB

[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

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