Re: Environment Variable
| From: | chris smith | Date: | Wed, 08 Mar 2006 10:09:24 +0000 |
| Subject: | Re: Environment Variable | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-231649@lists.php.net to get a copy of this message | ||
On 3/8/06, steff <stephane.riff@cerene.fr> wrote:
> Hello,
>
> I want to define my own environemnt variable "APPLICATION_ROOT" and be
> able to retrieve his value from php. As apache module, cgi, cron and
> command line.
>
> Now i'm just be able to get it from command line. In other
> (module,cgi,cron) when I print $_ENV I never get the same environment :(
>
> Is it possible to do it with PHP ???
The $_ENV variables come from the computer the script is running from.
Unless you have complete control over the computer the script is
running from I suggest you find another way to do what you need.
Why do you want it as an ENV variable?
--
Postgresql & php tutorials
http://www.designmagick.com/