Page 1 of 1

PHP IP to Country

Posted: Sun May 18, 2014 12:00 pm
by Stevyn
Short description:
Detect the country and region of an IP address
It can detect the current user IP address and validate it to determine if it is from a public or private network.

The class can send a HTTP request to the IP2Country API to retrieve the country of the detected IP address.

Then it looks up internal arrays to determine if the country region is United States, Canada, Europe or Asia.

http://www.phpclasses.org/package/8563- ... dress.html