【发布时间】:2014-09-15 07:58:19
【问题描述】:
我在 php 中通过 ip addresse 获取城市时遇到了一个大问题,该代码昨天可以工作,但现在我遇到了一个错误: 超出限制, 我的代码:
public function getCityAndCountryByIp($ip){
//get the city
$tags = get_meta_tags('http://www.geobytes.com/IpLocator.htm?GetLocation&template=php3.txt&IpAddress='.$ip);
$result = $tags['city'];
return $result;
请帮帮我,代码工作得更早,请有任何建议
【问题讨论】:
-
所以你已经超过了限制,所以你不能再使用它了。
标签: php php-5.3 php-5.4 php-5.5