PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

geoip_db_get_all_info> <geoip_db_avail
Last updated: Fri, 05 Sep 2008

view this page in

geoip_db_filename

(PECL geoip:1.0.1)

geoip_db_filename対応する GeoIP データベースのファイル名を返す

説明

string geoip_db_filename ( int $database )

geoip_db_filename() 関数は、 対応する GeoIP データベースのファイル名を返します。

これは、そのファイルが存在するかどうかを表すものではありません。 単に、ライブラリがデータベースを探す先を返すだけのものです。

パラメータ

database

データベースの形式を表す整数値。この拡張モジュールで定義している さまざまな定数 (GEOIP_*_EDITION) を使用することができます。

返り値

対応するデータベースのファイル名、あるいはエラー時に NULL を返します。

例1 geoip_db_filename() の例

これは、対応するデータベースのファイル名を出力します。

<?php

print geoip_db_filename(GEOIP_COUNTRY_EDITION);

?>

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

/usr/share/GeoIP/GeoIP.dat



add a note add a note User Contributed Notes
geoip_db_filename
There are no user contributed notes for this page.

geoip_db_get_all_info> <geoip_db_avail
Last updated: Fri, 05 Sep 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites