Location: PHPKode > scripts > GeoIP Country Whois Locator > geoip-country-whois-locator/geoip-test.php
<?php


	require_once("includes/classes/geoip.php");

	$objGeoIP = new GeoIP();
	$objGeoIP->search_ip("<YOUR IP>");

	if ($objGeoIP->found())
	{
		echo "Country Code: " 	. $objGeoIP->getCountryCode() 	. "<br/>";
		echo "Country Name: " 	. $objGeoIP->getCountryName() 	. "<br/>";
		echo "IP Class Start: " . $objGeoIP->getStartIp() 		. "<br/>";
		echo "IP Class End: " 	. $objGeoIP->getEndIp() 		. "<br/>";
	}
	else
		echo "NOT FOUND!";


?>

Return current item: GeoIP Country Whois Locator