From:             [EMAIL PROTECTED]
Operating system: Win NT 4.0 Server
PHP version:      4.2.2
PHP Bug Type:     IIS related
Bug description:  $_SERVER[DOCUMENT_ROOT] UNAVAILABLE

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 bug report at http://bugs.php.net/?id=19510&edit=1
-- 
Try a CVS snapshot:  http://bugs.php.net/fix.php?id=19510&r=trysnapshot
Fixed in CVS:        http://bugs.php.net/fix.php?id=19510&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=19510&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=19510&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=19510&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=19510&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=19510&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=19510&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=19510&r=submittedtwice
register_globals:    http://bugs.php.net/fix.php?id=19510&r=globals

Reply via email to