So far I have found....
Updated List of IP's
http://ip-to-country.webhosting.info...ountry.csv.zip
A script to import the file to your database
http://willem.creationpoint.nl/ip2co...o_country.phps
And the script you link to above
https://vborg.vbsupport.ru/showthread.php?t=53923
Or as this post shows
Quote:
I wrote a little script to convert the csv file to sql import script:
#!/bin/php
$lines=file('ip-to-country.csv');
foreach($lines as $line){
$line=trim($line);
if(!preg_match('/^"([0-9]+)","([0-9]+)","(.{2})","(.{3})","(.*)"$/',$line,$matches)){
echo "error";
}else{
echo 'insert into ip2c values("'.($matches[1]).'","'.($matches[2]).'","'.($matches[3]).'","'.($matches[4]).'","'.($matches[5]).'");'."\n";
}
}
?>
Usage:
copy this script and .csv file in the same dir then run:
convert.php >ip2c.sql
|
Maybe a coder can update it, or maybe I will... though I prefer a "professional" to do it.... I'm sure there's one here around somewhere
Actually, I may go ahead and try this as I need this.