Accessing env variables

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

 



Hi,

 

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.

 

I thought that the global command would make the global environment
variables available in the local php code.

 

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

 

Thanks

 

Ravi Natarajan

 

 


[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