[thelist] Identifying client's IP address with PHP

Anthony Baratta Anthony at Baratta.com
Wed Jul 25 13:55:52 CDT 2001


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





More information about the thelist mailing list