21,886
社区成员
发帖
与我相关
我的任务
分享
$context=stream_context_create(array('http'=>array('method'=>"GET",'timeout'=>30,)));
$string=file_get_contents('http://www.baidu.com/s?wd=php%20file_put_contents',false,$context);//换成java地址
echo '这可不是百度,只是我输出了百度的返回';
echo $string;