我試過這個教程http://tech.cibul.net/install-maxminds-geoip-ip-database-on-ubuntu-for-php/並做了一切。編譯了我的Ubuntu 11.10安裝中的geoip模塊和php擴展。geoip_record_by_name什麼都不返回?
我也嘗試這種更簡單的終端命令
(sudo) apt-get install php5-geoip
而事實證明,安裝成功,但是當我嘗試
geoip_record_by_name('127.0.0.1')
,它仍然提供了什麼,即沒有數組可言。