Re: _SERVER['DOCUMENT_ROOT'] not set?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2008/8/29 Saurabh Agrawal <mailsaurabh@xxxxxxxxx>:

> 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/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux