geoip_setup_custom_directory

GeoIP データベースのカスタムディレクトリを設定する

説明

void geoip_setup_custom_directory(string $path)

geoip_setup_custom_directory 関数は、 GeoIPデータベースのデフォルトディレクトリを変更します。 これは geoip.custom_directory を変更することと同等です。

パラメータ

path

ディスク上に置くGeoIP データベースのフルパス。

戻り値

値を返しません。

例1 geoip_setup_custom_directory の例

この例は、GeoIP のデータベースパスを変更します。

<?php

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

print 
geoip_db_filename(GEOIP_COUNTRY_EDITION);

?>

上の例の出力は以下となります。

/some/other/path/GeoIP.dat