On Fri, 1 Apr 2005, Ravi Natarajan wrote:

I have defined couple of environment variables in one of my apache module using setenv() at fixups and handler function calls.

I have another php module, where I need to access these variables. So I
have defined these variables as "global $var1, $var2 ..etc";

When I try to access these variables as $var1 and $var2 , they don't
seem to be set, so I am not getting correct values, but they give
correct values when I acess them using getenv() call.

How to access these environment variables in my php code without using
getenv() call.

Try using $_SERVER and $_ENV...

See here for more info...

http://us3.php.net/reserved.variables


-philip

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



Reply via email to