Re: [PHP] Environment Variable

2006-03-08 Thread Jarratt Ingram
Sorry i ment to add to my previous email, you will only be able to access the $_SERVER['APPLICATION_ROOT'] when using apache and not from Cron or Command line, for that i suppose you could add the following to the /etc/profile file APPLICATION_ROOT=/var/www/ and then to the export line EXPORT .

Re: [PHP] Environment Variable

2006-03-08 Thread Jarratt Ingram
Hello, If you are running on apache and have access to either the .conf file or .htaccess you can use the apache SetEnv directive eg. SetEnv APPLICATION_ROOT "/var/www/html/" and then from php use the $_SERVER['APPLICATION_ROOT'] to access the correct information HTH Jarratt On 3/7/06, st

Re: [PHP] Environment Variable

2006-03-08 Thread chris smith
On 3/8/06, steff <[EMAIL PROTECTED]> 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) w

RE: [PHP] Environment Variable contamination between vhosts - 1.3.33

2005-08-08 Thread Marc Powell
> -Original Message- > From: [EMAIL PROTECTED] [mailto:replies-lists- > [EMAIL PROTECTED] > Sent: Monday, August 08, 2005 11:49 AM > To: Marc Powell > Subject: Re: [PHP] Environment Variable contamination between vhosts - > 1.3.33 > > > > > > Da

Re: [PHP] Environment Variable contamination between vhosts - 1.3.33

2005-08-08 Thread Rasmus Lerdorf
Marc Powell wrote: > Hi all, > > First time poster here so I apologize in advance for any gaffs. I've > Googled, searched the archives and the FAQ but can't find anything close > to what I'm experiencing. > > I have apache-1.3.33, mod_ssl-2.8.22 (with patches), php-4.3.2 (with > patches, 4.4.0 te

Re: [PHP] environment variable, why does it not work?

2001-04-02 Thread Richard Lynch
> It look like that PHP can't set the environment variable or put in the > environment variable. The script I wrote down is > > putenv("LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH"); > putenv("ODBCINSTINI=/usr/local/bin/odbcinst.ini"); > putenv("ODBCINI=/usr/local/bin/odbc.ini"); > >