【发布时间】:2018-11-27 02:46:58
【问题描述】:
我得到的错误是:
警告: file_get_contents(http://maps.google.com/maps/api/geocode/json?address=&sensor=false) [function.file-get-contents]:无法打开流:HTTP 请求 失败的! HTTP/1.0 400 错误请求 D:\xampp\htdocs\SwaziTour\index.php 第 57 行
我的代码如下:
echo var_export( unserialize( file_get_contents( 'http://www.geoplugin.net/php.gp?ip='.$_SERVER['REMOTE_ADDR'] ) ) );
【问题讨论】:
-
my code is as below;在哪里? -
echo var_export(unserialize(file_get_contents('geoplugin.net/php.gp?ip='.$_SERVER['REMOTE_ADDR']))
标签: php