Environment variables...



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.

Attachment: signature.asc
Description: PGP signature



Relevant Pages

  • Wordpress <=2.0.2 cache shell injection
    ... if user registration is enabled, ... php files. ... DB_PASSWORD costant could be empty, ... echo 'No response from '.$host.':'.$port; die; ...
    (Bugtraq)
  • Re: exec/system wipes signal handler
    ... talking about the OS exec(), not the PHP exec() (although the PHP ... fork() creates a new process. ... exec echo b ...
    (comp.lang.php)
  • If ... else that does not work
    ... to PHP, so excuse dumb mistakes. ... Only some of them are not allowed to be empty, ... The PHP is at the bottom. ... echo "another part of a form"; ...
    (comp.lang.php)
  • Re: Testing if an array is empty
    ... A function reads a mysql record into an array and returns it, ... What ways do I have to test that my returned array is not empty ... if) echo '$array is empty'; ...
    (comp.lang.php)
  • Re: exec/system wipes signal handler
    ... talking about the OS exec(), not the PHP exec() (although the PHP ... The OS call fork() does that. ... exec echo b ...
    (comp.lang.php)