Re: getting $_ENV variables
| From: | C.R.Vegelin | Date: | Thu, 10 May 2007 15:50:29 +0000 |
| Subject: | Re: getting $_ENV variables | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-254735@lists.php.net to get a copy of this message | ||
Okay, I will use getenv() and keep variables_order = GPCS in php.ini
Thanks all and
with regards, Cor
----- Original Message ----- From: "Richard Davey" <rich@corephp.co.uk>
To: "php-general@lists.php.n" <php-general@lists.php.net>
Sent: Thursday, May 10, 2007 3:34 PM
Subject: Re: [PHP] getting $_ENV variables
C.R.Vegelin wrote:Yes, my PHPinfo shows under configuration: variables_order = GPCS I will test EGPCS setting in php.iniBut 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" -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php