网页自动查询是否被百度收录

2016-04-27 23:30:37 -0400
$post_href_1="{$article->Url}"; $url='http://www.baidu.com/s?wd='.$post_href_1; $curl=curl_init(); curl_setopt($curl,CURLOPT_URL,$url); curl_setopt($curl,CURLOPT_RETURNTRANSFER,1); $rs=curl_exec($curl); curl_close($curl); if(!strpos($rs,'没有找到')) { echo '  百度已收录';} else { echo '  百度未收录';}
«Newer      Older»
Comment:
Name:

Back to home

Subscribe | Register | Login | N