复制代码代码如下:
$str=file_get_contents('http://cn.bing.com/HPImageArchive.aspx?idx=0&n=1');
if( preg_match("/(.+?)/ies",$str,$matches)){
$imgurl='http://cn.bing.com'.$matches[1 ];
}
if($imgurl){
header('Content-Type: image/JPEG');
@ob_end_clean();
@readfile($imgurl);
@flush(); @ob_flush();
exit();
}else{
exit('error');
}
?>
http://www.bkjia.com/PHPjc/736855.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/736855.html技術記事复制代码代码如下: ?php $str=file_get_contents('http://cn.bing.com/HPImageArchive.aspx?idx=0 if(preg_match("/url(.+?)/url/ies",$str) ,$matches)){ $imgurl='http://cn.bing.com...