• PHP Video Tutorials

PHP - geoip_database_info()



The geoip_database_info() function can get GeoIP Database information.

Syntax

string geoip_database_info ([ int $database = GEOIP_COUNTRY_EDITION ] )

The geoip_database_info() function can return the corresponding GeoIP Database version as it is defined inside a binary file. If this function is called without an argument, it can return a version of the GeoIP Free Country Edition.

The geoip_database_info() function can return the corresponding database version, or null on error.

Example

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