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 .
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
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
> -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
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
> 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");
>
>
6 matches
Mail list logo