我正在使用谷歌地理编码服务。 我有一个调用谷歌地图API并接收JSON数据的PHP应用程序。调用谷歌地图主机的函数会挂起,直到超时,但只有当我推送到Godaddy虚拟专用服务器时才会出现这种情况。
我已经通过ssh登录到服务器并编辑了php.ini文件,将"safe mode"更改为"off"。
我收到以下错误消息:
Message: file_get_contents(http://maps.googleapis.com/maps/api/geocode/json?address=xYxY&sensor=false): failed to open stream: Connection timed out
这在我的WAMP服务器上运行良好,但在生产服务器上失败。你有什么想法吗?
我已经通过ssh登录到服务器并编辑了php.ini文件,将"safe mode"更改为"off"。
我收到以下错误消息:
Message: file_get_contents(http://maps.googleapis.com/maps/api/geocode/json?address=xYxY&sensor=false): failed to open stream: Connection timed out
这在我的WAMP服务器上运行良好,但在生产服务器上失败。你有什么想法吗?
wget
获取页面,是否会获得其他信息?命令是:wget http://maps.googleapis.com/maps/api/geocode/json?address=xYxY&sensor=false
- h2ooooooo