Re: getting $_ENV variables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx>
To: "php-general@xxxxxxxxxxx" <php-general@xxxxxxxxxxxxx>
Sent: Thursday, May 10, 2007 3:34 PM
Subject: Re:  getting $_ENV variables


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"

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux