On Wed, 2002-02-20 at 12:42, Steven Walker wrote:
> What is the difference between $_SERVER and getenv()? Why should one be 
> more reliable/better than the other?
> > Better: avoid globals and use $_SERVER['REMOTE_ADDR'].
> Sorry, if I'm asking you to repeat yourself... the documentation doesn't 
> relate the two.
> Steven J. Walker
> Walker Effects
> www.walkereffects.com

Sorry, I meant that $_SERVER is better than using register_globals=on,
not that it's better than getenv(). Anyway, getenv() just gets a 
variable value from the environment, and $_SERVER contains a hash of
server variables.

 Torben Wilson <[EMAIL PROTECTED]>

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to