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

search for in the

geoip_db_avail> <geoip_country_name_by_name
Last updated: Fri, 10 Oct 2008

view this page in

geoip_database_info

(PECL geoip:0.2.0-1.0.1)

geoip_database_infoGeoIP データベースの情報を取得する

説明

string geoip_database_info ([ int $database ] )

geoip_database_info() 関数は、 GeoIP データベースのバージョンを返します。 このバージョンはバイナリファイルの内部で定義されています。

この関数を引数なしでコールすると、GeoIP Free Country Edition のバージョンを返します。 ents, it returns the version of the GeoIP Free Country Edition.

パラメータ

database

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

返り値

対応するデータベースのバージョン、あるいはエラー時に NULL を返します。

例1 geoip_region_by_name() の例

これは、現在のデータベースのバージョンを文字列で返します。

<?php
print geoip_database_info(GEOIP_COUNTRY_EDITION);
?>

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

GEO-106FREE 20060801 Build 1 Copyright (c) 2006 MaxMind LLC All Rights Reserved



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

geoip_db_avail> <geoip_country_name_by_name
Last updated: Fri, 10 Oct 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites