Home > PHP > Function > GeoIP > geoip_db_filename()

geoip_db_filename()

geoip_db_filename - Returns the filename of the corresponding GeoIP Database

Syntax

string geoip_db_filename (int $database)

Arguments

  • database - The database type as an integer. You can use the various constantsdefined with this extension (ie: GEOIP_*_EDITION).

Description

The geoip_db_filename() function returns the filename of the corresponding GeoIP Database.

Version

PHP PECL geoip >= 1.0.1

Return value

Returns the filename of the corresponding database, or NULL on error.