Web Hosting Info

Search:

featured partner

The IP to Country Database

Submitted by trafficzone on Wed, 07/07/2004 - 23:01.
Hello,
I am wondering if there is any IP 2 Location databse for CANADA and USA for free.

if you have got any news please share it here .

Thanks
Comment viewing options:
Select your preferred way to display the comments and click 'Save settings' to submit your changes.
USA & Canada
Posted by jinesh on Thu, 07/08/2004 - 10:36.
hi trafficzone,

the IP2c database has ip ranges for USA and Canada...

-
jinesh.m
a humble employee
Please test the perfection of the 29 July version
Posted by allah on Sat, 07/10/2004 - 04:25.
Please test the accuracy of the database at www.media-interface.biz/ipmatch.php The code example I used is proven as functioning: $dbh=mysql_connect("localhost","db user name","Password");mysql_select_db("db name");$country_query = "SELECT COUNTRY_CODE2,COUNTRY_NAME FROM tablename ". "WHERE IP_FROM<=inet_aton('$REMOTE_ADDR') ". "AND IP_TO>=inet_aton('$REMOTE_ADDR') ";$country_exec = mysql_query($country_query);$ccode_array=mysql_fetch_array($country_exec); $country_code=$ccode_array['COUNTRY_CODE2'];$country_name=$ccode_array['COUNTRY_NAME'];mysql_close($dbh);
And to direct some country of origin to a dedicated page: if($country_name=="country name") { header("Location: http://www.domain/path.php"); } //
 
Last post was spam
Posted by neerav on Sun, 07/30/2006 - 15:36.
the last entry in this thread is spam. Please remove it.