geoip_db_availDetermine if GeoIP Database is available
&reftitle.description;
boolgeoip_db_availintdatabase
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.
&reftitle.parameters;
database
The database type as an integer. You can use the
various constants defined with
this extension (ie: GEOIP_*_EDITION).
&reftitle.returnvalues;
Returns &true; is database exists, &false; if not found, or &null; on error.
&reftitle.examples;
A geoip_db_avail example
This will output the current database version string.
]]>
&example.outputs;