Buz
asked on
$_ENV array is empty
I'm tring to print the values of $_ENV using PHP 4.3.4 (and 4.3.8) by using the next code:
var_dump($_ENV);
The result of it is:
array(0) { }
While using phpinfo() function I'm getting all the information in the Environment section but still any call for the $_ENV variable returns an empty string:
echo $_ENV["HOST"] ==> Empty string.
I'm sure it worked in previous versions of php with the same code.
Any idea?
var_dump($_ENV);
The result of it is:
array(0) { }
While using phpinfo() function I'm getting all the information in the Environment section but still any call for the $_ENV variable returns an empty string:
echo $_ENV["HOST"] ==> Empty string.
I'm sure it worked in previous versions of php with the same code.
Any idea?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Does EGPCS stand for ENV, GET, POST, COOKIE, SESSION ??
ASKER
Thanks hernst, that was quick and exactly what I've been looking for.