geoip_db_filename(3) php man page | unix.com

Man Page: geoip_db_filename

Operating Environment: php

Section: 3

GEOIP_DB_FILENAME(3)							 1						      GEOIP_DB_FILENAME(3)

geoip_db_filename - Returns the filename of the corresponding GeoIP Database

SYNOPSIS
string geoip_db_filename (int $database)
DESCRIPTION
The geoip_db_filename(3) 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
o $database - The database type as an integer. You can use the various constants defined with this extension (ie: GEOIP_*_EDITION).
RETURN VALUES
Returns the filename of the corresponding database, or NULL on error.
EXAMPLES
Example #1 A geoip_db_filename(3) example This will output the filename of the corresponding database. <?php print geoip_db_filename(GEOIP_COUNTRY_EDITION); ?> The above example will output: /usr/share/GeoIP/GeoIP.dat PHP Documentation Group GEOIP_DB_FILENAME(3)
Related Man Pages
geoipupdate(1) - linux
geoiplookup(1) - linux
geoiplookup6(1) - suse
flowtop(8) - centos
geoip_db_get_all_info(3) - php
Similar Topics in the Unix Linux Community
Apache2 mod_geoip installed