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 do
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.wa
On Wed, 2002-02-20 at 12:26, Analysis and Solutions wrote:
> Hi Steven:
>
> Steven Walker wrote:
> >
> > Does anybody know why the predefined variable $REMOTE_ADDR would be
> > null, while getenv("REMOTE_ADDR") works fine?
>
> Put "register_globals" on via your php.ini or .htaccess file. In ph
Hi Steven:
Steven Walker wrote:
>
> Does anybody know why the predefined variable $REMOTE_ADDR would be
> null, while getenv("REMOTE_ADDR") works fine?
Put "register_globals" on via your php.ini or .htaccess file. In php.ini,
change
register_globals = Off
to
register_globals = On
Enjoy,
Does anybody know why the predefined variable $REMOTE_ADDR would be
null, while getenv("REMOTE_ADDR") works fine?
Steven J. Walker
Walker Effects
www.walkereffects.com
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
5 matches
Mail list logo