PHP.nl

geoip_setup_custom_directory

geoip_setup_custom_directory

Set a custom directory for the GeoIP database

void **geoip_setup_custom_directory** string $path

The function will change the default directory of the GeoIP database. This is equivalent to changing . geoip_setup_custom_directorygeoip.custom_directory

pathThe full path of where the GeoIP database is on disk.

return.void

Voorbeeld: A example

This will change the GeoIP default database path.

<?php

geoip_setup_custom_directory('/some/other/path');

print geoip_db_filename(GEOIP_COUNTRY_EDITION);

?>
/some/other/path/GeoIP.dat