You need the latest version of ip-to-country.csv Find it here : http://ip-to-country.directi.com/downloads/ip-to-country.csv.zip
info at phpclasses dot org