Re: $REMOTE_ADDR error
| From: | Richard Lynch | Date: | Wed, 27 Jun 2001 08:26:42 +0000 |
| Subject: | Re: $REMOTE_ADDR error | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-55355@lists.php.net to get a copy of this message | ||
> why do $REMOTE_ADDR always returns 127.0.0.1 no matter the user's IP who
is
> seeing the page?
>
> this doesn't look 'remote' to me...
Maybe your web-server is not configured to give you REMOTE_ADDR.
PHP pretty much just passes on whatever the web-server hands it.
If you don't like what you are getting, it's in your web-server
configuration, and not actually in PHP...
Also, if your web-server is on your machine, well, you always are 127.0.0.1
when you surf...
--
WARNING richard@zend.com address is an endangered species -- Use
ceo@l-i-e.com
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm