in reply to Finding out which country a user comes from using $_ENV[HTTP_...]
REMOTE_ADDR give you the client's IP address, but you still have a long way to go to map this to a country. You'll need to get your hands on IANA (Internet Assigned Number Authority) data, and data from the other organizations AINA has delegated to, parse it, and build an access method.
People like Quova have build a business around this problem.
|
|---|