我正在尝试在免费虚拟主机上上传我的文件以进行试用。我遇到了客户端 ip 定位器的输出问题。我正在使用 maxmind 数据库。“地理IP.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
是geoip_database_info()
因为这个主机没有为php安装pecl ext而找不到函数吗?或者可能有其他原因导致此错误?