Re: getenv()
| From: | (Richard Lynch) | Date: | Wed, 12 Jul 2000 20:38:33 +0000 |
| Subject: | Re: getenv() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-6257@lists.php.net to get a copy of this message | ||
In article <00bf01bfea1d$126010a0$4ac8fea9@scu.edu.au>, iteo@scu.edu.au
("Ignatius Teo") wrote:
> phpinfo() returns 2 tables of environment variables - one simply says
> environment variables, and the other says Apache environment. Both tables
> appear to have the CGI Specification variables set, but some of these values
> are set differently.
>
> I have an application that looks at the $REMOTE_USER environment variable to
> determine who is logged on, so we can display user specific information.
> Yes, this is not ideal, but we are unfortunately, using Kerberos to
> authenticate people into our intranet.
>
> Can anyone tell me, from which set of environment variables does getenv take
> it's values from? And why it is set differently?
Wild Guess:
Apache Environment variables where set when Apache was started: The
others are "current"...
If correct, GetEnv gets them from "current", not Apache.
--
Richard Lynch | If this was worth $$$ to you, buy a CD
US Customer Support Director | from one of the artists listed here:
Zend Technologies USA | http://www.L-I-E.com/artists.htm
http://www.zend.com | (this has nothing to do with Zend,
duh!)