Link to home
Start Free TrialLog in
Avatar of Buz
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?
ASKER CERTIFIED SOLUTION
Avatar of hernst42
hernst42
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of minichicken
minichicken

Does EGPCS stand for ENV, GET, POST, COOKIE, SESSION ??
Avatar of Buz

ASKER

Thanks hernst, that was quick and exactly what I've been looking for.