geoip_setup_custom_directory()
The geoip_setup_custom_directory() function can set a custom directory for the GeoIP database.
Syntax
void geoip_setup_custom_directory( string $path )
The geoip_setup_custom_directory() function can change the default directory of GeoIP database. This is equivalent to changing geoip.custom_directory.
The geoip_setup_custom_directory() function doesn't return any value.
Example
<?php
geoip_setup_custom_directory("/some/other/path");
print geoip_db_filename(GEOIP_COUNTRY_EDITION);
?>
php_function_reference.htm
Advertisements