Re: Document root, preferred way to find it???

From: Date: Fri, 04 Mar 2005 23:10:23 +0000
Subject: Re: Document root, preferred way to find it???
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-210053@lists.php.net to get a copy of this message
Leif Gregory wrote: > 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. Never seen it. Only your post w/ a reference to a thread I didn't go re-read made me think it could happen... I don't really spend a lot of time porting code from server to server, though. -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#210053) next »