(PECL geoip >= 0.2.0)
geoip_database_info — 取得 GeoIP 資料庫資訊
geoip_database_info() 函式會傳回 GeoIP 資料庫版本,如同在二進位檔案中所定義的。
如果在沒有引數的情況下呼叫此函式,它會傳回 GeoIP 免費國家版本。
傳回對應的資料庫版本,如果發生錯誤則傳回 null
。
範例 #1 geoip_database_info() 範例
這將輸出有關資料庫的資訊。
<?php
print geoip_database_info(GEOIP_COUNTRY_EDITION);
?>
以上範例將輸出
GEO-106FREE 20060801 Build 1 Copyright (c) 2006 MaxMind LLC All Rights Reserved