$p=$_GET['p']; if($p==null)$p=1; $page=$p*20; $url='http://m.baidu.com/img?tn=bdjsonliulan&pu=sz%401320_2001&bd_page_type=1&tag1=%E7%BE%8E%E5%A5%B3&realword=%E7%BE%8E%E5%A5%B3&word=%E7%BE%8E%E5%A5%B3&pn='.$page.'&rn=20'; $jsoncode=file_get_contents($url); $mm=json_decode($jsoncode); for($i=0;$i<img style="max-width:90%" src="'.%24mm->data%5B%24i%5D->picurl.'" alt="PHP获取百度上的高质量妹子图" ><br>'; } $p=$p+1; echo '<center><a href="?p='.%24p.'">Next Page</a></center>'; ?>
$p=$_GET['p']; if($p==null)$p=1; $page=$p*20; $url='http://m.baidu.com/img?tn=bdjsonliulan&pu=sz%401320_2001&bd_page_type=1&tag1=%E7%BE%8E%E5%A5%B3&realword=%E7%BE%8E%E5%A5%B3&word=%E7%BE%8E%E5%A5%B3&pn='.$page.'&rn=20'; $jsoncode=file_get_contents($url); $mm=json_decode($jsoncode); for($i=0;$i<img style="max-width:90%" src="'.%24mm->data%5B%24i%5D->picurl.'" alt="PHP获取百度上的高质量妹子图" ><br>'; } $p=$p+1; echo '<center><a href="?p='.%24p.'">Next Page</a></center>'; ?>