我想访问 google map api 进行反向地理编码。我使用 file_get_contents 方法访问 url。
$url = "http://maps.google.com/maps/geo?json&ll&ll=".$lat.",".$long;
$data = file_get_contents($url);
我得到 $data 的值为 FALSE,从堆栈溢出我得到的信息是由于 php.ini 文件的配置(allow_url_fopen 在我们的网络服务器中为假)
我联系了网络服务器的人,但由于安全问题他们没有还没准备好更改服务器配置。
有没有其他方法可以在不更改服务器配置的情况下访问 url?分享你的经验,知识,谢谢