geoip.inc | |
Description | This file holds all original functions from maxmind. |
GeoIP-Functions | |
geoip_country_code_by_addr | Fetches country-code |
geoip_country_name_by_addr | Fetches country-name |
function geoip_country_code_by_addr( $gi, $addr )
Fetches country-code
string geoip_country_code_by_addr( handle $gi, string $ip_addr )
gi | (handle) The handle returned from geoip_open_db(). |
ip_addr | string A IP-Address. |
country-code, e.g. "US", or empty string if ip is from bogons space (private, reserved, local).
function geoip_country_name_by_addr( $gi, $addr )
Fetches country-name
string geoip_country_name_by_addr( handle $gi, string $ip_addr )
gi | (handle) The handle returned from geoip_open_db(). |
ip_addr | string A IP-Address. |
country-name, e.g. "Brazil", or empty string if ip is from bogons space (private, reserved, local).
Fetches country-code
function geoip_country_code_by_addr( $gi, $addr )
Fetches country-name
function geoip_country_name_by_addr( $gi, $addr )