|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-09-19 20:01 UTC] kkobashi at thegrid dot 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!
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 22:00:01 2025 UTC |
looks like a bug, - but as an aside, you could consider.. #nicest - or add it to php.ini ini_set('include_path', 'standard/install/location'); #which enables all includes to look include 'Database/TableClass.php'; #klunky, but effective include dirname(__FILE__).'/../../somefile.php');