geoip_id_by_name

(PECL geoip >= 0.2.0) Get the Internet connection type int geoip_id_by_name ( string $hostname ) The geoip_id_by_name() function will return the Internet connection type corresponding to a hostname or an IP address. The return value is numeric and can be compared to the following constants: GEOIP_UNKNOWN_SPEED GEOIP_DIALUP_SPEED GEOIP_CABLEDSL_SPEED GEOIP_CORPORATE_SPEED Parameters:

geoip_domain_by_name

(PECL geoip >= 1.1.0) Get the second level domain name string geoip_domain_by_name ( string $hostname ) The geoip_domain_by_name() function will return the second level domain names associated with a hostname or an IP address. This function is currently only available to users who have bought a commercial GeoIP Domain Edition. A warning will be issued if the proper database cannot be located. Parameters

geoip_db_get_all_info

(PECL geoip >= 1.0.1) Returns detailed information about all GeoIP database types array geoip_db_get_all_info ( void ) The geoip_db_get_all_info() function will return detailed information as a multi-dimensional array about all the GeoIP database types. This function is available even if no databases are installed. It will simply list them as non-available. The names of the different keys of the returning associative

geoip_db_filename

(PECL geoip >= 1.0.1) Returns the filename of the corresponding GeoIP Database string geoip_db_filename ( int $database ) The geoip_db_filename() function returns the filename of the corresponding GeoIP Database. It does not indicate if the file exists or not on disk, only where the library is looking for the database. Parameters: database The database type as an int

geoip_db_avail

(PECL geoip >= 1.0.1) Determine if GeoIP Database is available bool geoip_db_avail ( int $database ) The geoip_db_avail() function returns if the corresponding GeoIP Database is available and can be opened on disk. It does not indicate if the file is a proper database, only if it is readable. Parameters: database The database type as an integer. You can use the vario

geoip_database_info

(PECL geoip >= 0.2.0) Get GeoIP Database information string geoip_database_info ([ int $database = GEOIP_COUNTRY_EDITION ] ) The geoip_database_info() function returns the corresponding GeoIP Database version as it is defined inside the binary file. If this function is called without arguments, it returns the version of the GeoIP Free Country Edition. Parameters: database

geoip_country_name_by_name

(PECL geoip >= 0.2.0) Get the full country name string geoip_country_name_by_name ( string $hostname ) The geoip_country_name_by_name() function will return the full country name corresponding to a hostname or an IP address. Parameters: hostname The hostname or IP address whose location is to be looked-up. Returns: Returns the country name on

geoip_country_code3_by_name

(PECL geoip >= 0.2.0) Get the three letter country code string geoip_country_code3_by_name ( string $hostname ) The geoip_country_code3_by_name() function will return the three letter country code corresponding to a hostname or an IP address. Parameters: hostname The hostname or IP address whose location is to be looked-up. Returns: Returns th

geoip_country_code_by_name

(PECL geoip >= 0.2.0) Get the two letter country code string geoip_country_code_by_name ( string $hostname ) The geoip_country_code_by_name() function will return the two letter country code corresponding to a hostname or an IP address. Parameters: hostname The hostname or IP address whose location is to be looked-up. Returns: Returns the two

geoip_continent_code_by_name

(PECL geoip >= 1.0.3) Get the two letter continent code string geoip_continent_code_by_name ( string $hostname ) The geoip_continent_code_by_name() function will return the two letter continent code corresponding to a hostname or an IP address. Parameters: hostname The hostname or IP address whose location is to be looked-up. Returns: Returns