#19510 [Opn]: $_SERVER[DOCUMENT_ROOT] UNAVAILABLE
| From: | kkobashi at thegrid dot net | Date: | Fri, 20 Sep 2002 01:03:54 +0000 |
| Subject: | #19510 [Opn]: $_SERVER[DOCUMENT_ROOT] UNAVAILABLE | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-19811@lists.php.net to get a copy of this message | ||
ID: 19510
User updated by: kkobashi@thegrid.net
Reported By: kkobashi@thegrid.net
Status: Open
Bug Type: IIS related
Operating System: Win NT 4.0 Server
PHP Version: 4.2.2
New Comment:
Typo... build is 1381 NT 4.0 Server
Previous Comments:
------------------------------------------------------------------------
[2002-09-19 20:01:07] kkobashi@thegrid.net
Major problem making PHP4 useless in a large development
portal/enterprise scenario!!!
PHP 4.2.2
Windows NT 4.0 Server Build 1382
IIS 4.0
Calling $_SERVER["DOCUMENT_ROOT"] results in an unknown index
The ramifications of this bug is serious enough to cripple my entire
development as I will not be able to include() or require() files
across many directories.
My development is in Windows, however my hosts are in Unix/Linux. I
simply cannot use ini_get('doc_root') as a solution because then I have
to switch the entire code to $_SERVER[DOCUMENT_ROOT] before uploading
to the servers.
I can't believe noone else posted this bug anywhere - because it is on
a plain Windows NT server system!
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=19510&edit=1