Quote:
Originally Posted by Jakez
This thing is just returning United States for every non-US IP I throw at it.. wtf?
<?php
include_once("geoip.inc");
$open = geoip_open("GeoIP.dat", GEOIP_STANDARD);
print geoip_country_code_by_addr($open, "62.41.77.63");
geoip_close($open);
?>
Should return DE for Germany but it says US from everything..
|
is GeoIP.dat the actual location of the .dat file? Have you tried adding the full server path to the dat file? Sounds to me like it can't find that GeoIP.dat file....