PHPマニュアル/PEARマニュアル | ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot

geoip_setup_custom_directory - Set a custom directory for the GeoIP database. | JavaScript入門&応用&リファレンスなら「JavaScriptist」

  

geoip_setup_custom_directory

(PECL geoip >= 1.1.0)

geoip_setup_custom_directorySet a custom directory for the GeoIP database.

説明

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.

パラメータ

path

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

返り値

値を返しません。

例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);

?>

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

/some/other/path/GeoIP.dat


忘却曲線を使ってこの関数を確実に記憶に残す

フォーラムで「geoip_setup_custom_directory - Set a custom directory for the GeoIP database.」について話す
各種マニュアル: PHPマニュアル | PEARマニュアル | Smarty(英語)マニュアル | PHP-GTKマニュアル | geoip_setup_custom_directory - Set a custom directory for the GeoIP database.」をGoogle検索
copyright © 1997-2024 PHP ドキュメント作成グループ(ライセンス). provided by php spot. マニュアル: