View Single Post
Old 11-16-2010, 09:24 AM  
Kiopa_Matt
Confirmed User
 
Industry Role:
Join Date: Oct 2007
Posts: 1,448
I use it all the time, and it works great. Try this instead:

Code:
<?php
include_once("geoip.inc");
include_once("geoipregionvars.php");

$gi = geoip_open("GeoIP.dat", GEOIP_STANDARD);
$record = geoip_record_by_addr($gi, "62.41.77.63");

$country_code = $record->country_code;
$state_code = $record->region;
$city_name = $record->city;

geoip_close($gi);
?>
Should work fine.
__________________
xMarkPro -- Ultimate Blog Network Management
Streamline your marketing operations. Centralize management of domains, pages, Wordpress blogs, sponsors, link codes, media items, sales and traffic statistics, plus more!

Last edited by Kiopa_Matt; 11-16-2010 at 09:26 AM..
Kiopa_Matt is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote