Re: [PHP] getenv & $REMOTE_ADDR

2002-02-20 Thread Lars Torben Wilson
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

Re: [PHP] getenv & $REMOTE_ADDR

2002-02-20 Thread Steven Walker
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

Re: [PHP] getenv & $REMOTE_ADDR

2002-02-20 Thread Lars Torben Wilson
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

Re: [PHP] getenv & $REMOTE_ADDR

2002-02-20 Thread Analysis and Solutions
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,

[PHP] getenv & $REMOTE_ADDR

2002-02-20 Thread Steven Walker
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