Net_GeoIP::lookupCountryName() | Net_GeoIP::lookupRegion() |
Net_GeoIP | |
PEAR Manual | |
require_once "Net/GeoIP.php"; |
string lookupCountryCode() (
string $addr
)
This method returns the 2-letter country code for the given IP address. It works with both the free and the non-free databases.
Looking up the country code
|
This method throws an exception if the IP address is invalid or if the database type is incorrect.
Net_GeoIP::lookupCountryName() | Net_GeoIP::lookupRegion() |
Net_GeoIP | |
PEAR Manual | |