Re: getting $_ENV variables

From: Date: Thu, 10 May 2007 14:34:52 +0000
Subject: Re: getting $_ENV variables
References: 1 2 3 4 5 6  Groups: php.general 
Request: Send a blank email to php-general+get-254732@lists.php.net to get a copy of this message
C.R.Vegelin wrote:
Yes, my PHPinfo shows under configuration: variables_order = GPCS I will test EGPCS setting in php.ini
But that also means that code using $_ENV cannot be run with hosts hiding the environment settings ?!
Correct. Sucks I know, but some hosts just do this.
And I assume that EGPCS will also affect: <?php print_r($_FILES); ?>
No, $_FILES isn't part of the Environment list, it's created again at run-time when a file upload occurs. It would be worth running a test to see if they have tied it to the $_POST array, i.e. remove the 'P' from EGPCS and see if $_FILES gets lost with it. I would be curious to know, although I can't think of a single host that would be stupid enough to disable $_POST :) Cheers, Rich -- Zend Certified Engineer http://www.corephp.co.uk "Never trust a computer you can't throw out of a window"

« previous php.general (#254732) next »