【发布时间】:2012-01-25 21:24:42
【问题描述】:
我正在尝试在免费虚拟主机上上传我的文件以进行试用。我遇到了客户端 ip 定位器的输出问题。我正在使用 maxmind 数据库。 "GeoIP.dat"
<?php
print geoip_database_info(GEOIP_COUNTRY_EDITION);
?>
输出是
Fatal error: Call to undefined function geoip_database_info() in /home/u_fg176/public_html/index.php on line 15
是不是因为这个主机没有为php安装pecl ext而找不到函数geoip_database_info()?还是有其他原因导致此错误?
【问题讨论】: