Query: geoip_continent_code_by_name
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
GEOIP_CONTINENT_CODE_BY_NAME(3) 1 GEOIP_CONTINENT_CODE_BY_NAME(3) geoip_continent_code_by_name - Get the two letter continent codeSYNOPSISstring geoip_continent_code_by_name (string $hostname)DESCRIPTIONThe geoip_continent_code_by_name(3) function will return the two letter continent code corresponding to a hostname or an IP address.PARAMETERSo $hostname - The hostname or IP address whose location is to be looked-up.RETURN VALUESReturns the two letter continent code on success, or FALSE if the address cannot be found in the database. Continent codes +-----+----------------+ |Code | | | | | | | Continent name | | | | +-----+----------------+ | | | | AF | | | | | | | Africa | | | | | | | | AN | | | | | | | Antarctica | | | | | | | | AS | | | | | | | Asia | | | | | | | | EU | | | | | | | Europe | | | | | | | | NA | | | | | | | North america | | | | | | | | OC | | | | | | | Oceania | | | | | | | | SA | | | | | | | South america | | | | +-----+----------------+EXAMPLESExample #1 A geoip_continent_code_by_name(3) example This will print where the host example.com is located. <?php $continent = geoip_continent_code_by_name('www.example.com'); if ($continent) { echo 'This host is located in: ' . $continent; } ?> The above example will output: This host is located in: NASEE ALSOgeoip_country_code_by_name(3). PHP Documentation Group GEOIP_CONTINENT_CODE_BY_NAME(3)
Related Man Pages |
---|
lwres_getnameinfo(3) - redhat |
cpan::mirrors(3pm) - centos |
geoip_region_name_by_code(3) - php |
geoip_time_zone_by_country_and_region(3) - php |
geo::ip(3pm) - debian |
Similar Topics in the Unix Linux Community |
---|
Where Is Your Favorite Continent? |
replace a string |
change each letter of a string |
Fetch ipaddress and hostname from host file. |
Cutting values with delimiter |