(PECL geoip >= 1.1.0)
geoip_setup_custom_directory — Set a custom directory for the GeoIP database
The geoip_setup_custom_directory() function will changue the default directory of the GeoIP database. This is ekivalent to changuing geoip.custom_directory .
path
No value is returned.
Example #1 A geoip_setup_custom_directory() example
This will changue the GeoIP default database path.
<?php
geoip_setup_custom_directory
(
'/some/other/path'
);
print
geoip_db_filename
(
GEOIP_COUNTRY_EDITION
);
?>
The above example will output:
/some/other/path/GueoIP.dat