2014-01-15 03:46
浏览 38


I have installed net_geoip on my web host and am encountering the error Fatal error: Class 'Net_GeoIP' not found in /home/heyitspr/public_html/ on line 3 when I run the script that is posted below:

$geoip = Net_GeoIP::getInstance('GeoIP.dat', Net_GeoIP::SHARED_MEMORY); $country_name = $geoip->lookupCountryName($_SERVER['REMOTE_ADDR']);

print_r ($country_name);

I am new to installing plugins with apache so please explain it in simpler terms. Thanks

图片转代码服务由CSDN问答提供 功能建议

我在我的网络主机上安装了net_geoip并遇到错误致命错误:类'Net_GeoIP'没有 当我运行下面发布的脚本时,在第3行的/home/heyitspr/public_html/中找到

$ geoip = Net_GeoIP :: getInstance('GeoIP.dat',Net_GeoIP :: SHARED_MEMORY); $ country_name = $ geoip-&gt; lookupCountryName($ _ SERVER ['REMOTE_ADDR']); < / p>

print_r($ country_name);

我是新手用apache安装插件所以请用简单的术语解释一下。 谢谢

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • doubi4435 2014-01-15 03:51

    Seems like you have not included your GeoIP library. Try including it on your index.php code

    点赞 评论

相关推荐 更多相似问题