Hey guys, just want to know if somebody know how to install MaxMind GeoIP php code in wordpress. I've been following this tuto to achieve it but it didn't worked in my posts and/or my pages. But when i left the print command (print_r) in the code, it showed me my own geoip information in the header :
Is somebody have a clever way to install it on a wordpress blog?
thanks
PHP:
include(”geoip.inc”;);
include(”geoipcity.inc”;);
include(”geoipregionvars.php”;);
$gi = geoip_open(”;http://www.hiringcontractorsnow.com/GeoT/GeoLiteCity.dat”;, GEOIP_STANDARD);
$rsGeoData = geoip_record_by_addr($gi, $_SERVER['REMOTE_ADDR']);
echo(”;”;);
print_r($rsGeoData);
echo(”;”;);
geoip_close($gi);
thanks