Re: _SERVER['DOCUMENT_ROOT'] not set?
| From: | David Otton | Date: | Fri, 29 Aug 2008 09:40:49 +0000 |
| Subject: | Re: _SERVER['DOCUMENT_ROOT'] not set? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-278954@lists.php.net to get a copy of this message | ||
2008/8/29 Saurabh Agrawal <mailsaurabh@gmail.com>:
> In one of the examples, I am supposed to access _SERVER['DOCUMENT_ROOT'].
> However, when I am seeing its value in the debug stack, I am getting it to
> be null! Even phpinfo() is showing that this particular variable does not
> even exist, though there are other _SERVER[''] declarations.
What's DocumentRoot set to in your Apache config? (httpd.conf) Check
any VirtualHost blocks you might have, too.
What's the result of print_r($_SERVER); ?
--
http://www.otton.org/