Re: finding the web root

From: Date: Tue, 08 Jun 2010 21:59:42 +0000
Subject: Re: finding the web root
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-305984@lists.php.net to get a copy of this message
> $_SERVER['DOCUMENT_ROOT'] > although a post on the manual mentions some variability between > environments. $root = (array_key_exists('DOCUMENT_ROOT', $_ENV)) ? $_ENV['DOCUMENT_ROOT'] : $_SERVER['DOCUMENT_ROOT'];

« previous php.general (#305984) next »