[thelist] Identifying client's IP address with PHP

Johnny Lam jlam at popcast.com
Wed Jul 25 13:30:13 CDT 2001


Hello,

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?

- Johnny




More information about the thelist mailing list