• PHP Video Tutorials

PHP - geoip_db_filename()



The geoip_db_filename() function can return a filename of the corresponding GeoIP Database.

Syntax

string geoip_db_filename( int $database )

The geoip_db_filename() function doesn't indicate if a file exists or not on disk, only where a library is looking for the database.

The geoip_db_filename() function can return a filename of the corresponding database or NULL on error.

Example

<?php
   print geoip_db_filename(GEOIP_COUNTRY_EDITION);
?>
php_function_reference.htm
Advertisements