Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经安装了geoip,用于根据php中的remote_server ip获取地址。我已经在我的系统中安装了 Geoip 包,还安装了 php5-geoip php 扩展。但是在运行以下脚本时,它显示了致命错误。
geoip_open("GeoIP.dat",GEOIP_STANDARD);
错误是
Fatal error: Call to undefined function geoip_open()
包含该geoip_inc文件之后它不会显示此错误并且它maxMind library不会php extension
geoip_inc
maxMind library
php extension
include("include/geoip.inc"); $gi = geoip_open("include/GeoIP.dat", GEOIP_STANDARD);