php man page for geoip_continent_code_by_name

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 code

SYNOPSIS
string geoip_continent_code_by_name (string $hostname)
DESCRIPTION
The geoip_continent_code_by_name(3) function will return the two letter continent code corresponding to a hostname or an IP address.
PARAMETERS
o $hostname - The hostname or IP address whose location is to be looked-up.
RETURN VALUES
Returns 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 | | | | +-----+----------------+
EXAMPLES
Example #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: NA
SEE ALSO
geoip_country_code_by_name(3). PHP Documentation Group GEOIP_CONTINENT_CODE_BY_NAME(3)
Related Man Pages
lwres_getnameinfo(3) - redhat
cpan::mirrors(3pm) - osx
mysqli_stmt.get_result(3) - php
cpan::mirrors5.18(3pm) - mojave
app::clusterssh::host(3pm) - debian
Similar Topics in the Unix Linux Community
Trimming fields for comma or pipe seperated file
print ip to hostname with array
awk script help
Fetch ipaddress and hostname from host file.
How to print last character of hostname and assign to a variable ?