geoip_db_avail

PECL geoip >= 1.0.1
geoip_db_avail - Determine if GeoIP Database is available
Manual
Code Examples

geoip_db_avail( int$database ): bool

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 various constants defined with this extension (ie: GEOIP_*_EDITION).

Return Values

Returns true is database exists, false if not found, or null on error.

Example of geoip_db_avail

Show all examples for geoip_db_avail

PHP Version: