Page 1 of 1

How do i get the IP f a user?

Posted: Fri Nov 23, 2007 11:08 pm
by iceangel89
How do i get the IP f a user? and maybe country info? like USA, Singapore etc

Posted: Fri Nov 23, 2007 11:17 pm
by s.dot
You can't reliably get the ip address.

$_SERVER['REMOTE_ADDR'] will give you it, if it is available. You can find the other information using geoip databases or services.