geoip_setup_custom_directory

Set a custom directory for the GeoIP database

&reftitle.description; `void` `geoip_setup_custom_directory` `string` `path`

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

&reftitle.parameters;

`path`

- The full path of where the GeoIP database is on disk.

&reftitle.returnvalues;

&return.void;

&reftitle.examples;

### A `geoip_setup_custom_directory` example

This will change the GeoIP default database path.

    <?php

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

    print geoip_db_filename(GEOIP_COUNTRY_EDITION);

    ?>

&example.outputs;

    /some/other/path/GeoIP.dat