【发布时间】:2012-08-30 21:43:53
【问题描述】:
我正在使用此代码来查找位置的纬度
$api='http://maps.googleapis.com/maps/api/geocode/json?address=United States Neversink&sensor=false';
$result = file_get_contents($api);
$data = json_decode($result);
但它给出警告警告:file_get_contents(http://maps.googleapis.com/maps/api/geocode/json?address=United States Neversink&sensor=false) [function.file-get-contents]: failed to打开流:HTTP 请求失败!第 139 行 C:\wamp\www\new_yellowpages\modules\mod_yellowpages_item_map\helper.php 中的 HTTP/1.0 400 错误请求
如果有人知道这个问题,请帮助我。
【问题讨论】:
标签: php google-maps