PHP 5.6.0 released

geoip_setup_custom_directory

(PECL geoip >= 1.1.0)

geoip_setup_custom_directorySet a custom directory for the GeoIP database.

Beschreibung

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.

Parameter-Liste

path

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

R├╝ckgabewerte

Es wird kein Wert zur├╝ckgegeben.

Beispiele

Beispiel #1 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);

?>

Das oben gezeigte Beispiel erzeugt folgende Ausgabe:

/some/other/path/GeoIP.dat

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top