Depending on your system and environment (platform and cli v. cgi), they should be in either of the $_ENV or $_SESSION superglobals.

On Mar 14, 2007, at 9:32 AM, David BERCOT wrote:

Hi,

I'd like to read an environment variable with PHP.
I've tried with :
        exec ('echo $CONTEXTE_D_EXECUTION',$result);
$result is empty !!!

I've put the variable in /etc/environment, in /etc/profile,
in /etc/bash.bashrc but nothing worked...

Do you have any idea ?

If it is not possible, I suppose I can put a variable in php.ini ?

Thank you very much.

David.

erik jones <[EMAIL PROTECTED]>
sofware developer
615-296-0838
emma(r)



Reply via email to