PHP IP to Country

Let us talk about scripts, HTML, Perl, PHP, apache, etc.
User avatar
Stevyn
SysOp
Posts:1786
Joined:Mon Nov 09, 2009 10:03 am
Location:Japan
Contact:
PHP IP to Country

Post by Stevyn » Sun May 18, 2014 12:00 pm

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
Contact me directly: Ironfeatherbooks (@) gmail.com

Image

Post Reply