Re: Bug #4161: PUTENV() don't work, the variable "created" never appears

From: Date: Mon, 17 Apr 2000 15:06:07 +0000
Subject: Re: Bug #4161: PUTENV() don't work, the variable "created" never appears
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-17969@lists.php.net to get a copy of this message
: putenv("UNIQID=$uniqid"); : : Then on other page I used : : echo getenv("UNIQID"); : phpinfo(); : : And the variable created before never appear putenv() doesn't put the variable in the global buffer. Just the local buffer of that application. It is destroyed when the program ends! So the other program cannot read it (exec() family of functions in C allows passing of environment, but you'll have to call the other program from C as well....) Enjoy! Faisal

« previous php.dev (#17969) next »