[thelist] Identifying client's IP address with PHP

Johnny Lam jlam at popcast.com
Wed Jul 25 14:39:16 CDT 2001


Nevermind I got the variable. It was "$HTTP_X_FORWARDED_FOR"

-----Original Message-----
From: Anthony Baratta [mailto:Anthony at Baratta.com]
Sent: Wednesday, July 25, 2001 11:59 AM
To: thelist at lists.evolt.org
Subject: Re: [thelist] Identifying client's IP address with PHP


At 11:28 AM 7/25/2001, you wrote:

>I'm trying to obtain the visitor's ip address using a php page. I've tried
>using the apache variable "$REMOTE_ADDR" and that doesn't work. It just
>seems to give out the local host ip (127.0.0.1). In asp you would call
>"Request.ServerVariables('REMOTE_ADDR')". Does anybody have any ideas how
to
>do this?

Are you testing and developing on the same box? I use this variable 
($REMOTE_ADDR) without a problem.

---
Anthony Baratta
President
Keyboard Jockeys

Blatant Plug: Cool Jazz for a hot summer,
     http://LisaMarie.Baratta.com


---------------------------------------
For unsubscribe and other options, including
the Tip Harvester and archive of TheList go to:
http://lists.evolt.org Workers of the Web, evolt ! 




More information about the thelist mailing list