View Single Post
Old 11-16-2010, 11:27 AM  
borked
Totally Borked
 
borked's Avatar
 
Industry Role:
Join Date: Feb 2005
Posts: 6,284
Quote:
Originally Posted by Jakez View Post
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....
__________________

For coding work - hit me up on andy // borkedcoder // com
(consider figuring out the email as test #1)



All models are wrong, but some are useful. George E.P. Box. p202
borked is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote