GeoIP Example

We install GeoIP modules on all of our servers and keep the database as up to date as possible.? 

The below output should show something like the below.

Country Code: NZ
Country: New Zealand
Continent Code: OC

print "Country Code: " . $GEOIP_COUNTRY_CODE;
echo "<BR>";
print "Country: " . $GEOIP_COUNTRY_NAME;
echo "<BR>";
print "Continent Code: " . $CONTINENT_COD;

  • 1 Users Found This Useful
Was this answer helpful?