On 3/14/07, David BERCOT <[EMAIL PROTECTED]> 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.
PHP is running from apache, which is running probably from the nobody
user. This user hasn't loaded any variables i think.
So, why are you not just reading /etc/profile from php?
Tijnema
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php