Home >php教程 >php手册 >php 收录查询baidu快照与收录页面

php 收录查询baidu快照与收录页面

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-13 11:22:21958browse

下面二个函数是用来获取网站收录查询的源码了,这是用来查询baidu快照与收录页面哦。

下面二个函数是用来获取网站收录查询的源码了,这是用来查询baidu快照与收录页面哦。

function baidu()
{
 global $murl,$furl;
 $url = "http://www.baidu.com/s?wd=site:$furl";
 $page = file_get_contents($url);
 $PageNum = "0";
 $PageNum = str_replace(",","",cut($page,"找到相关网页约", "篇" ));
 if ($PageNum == "") $PageNum = str_replace(",","", cut($page,"找到相关网页", "篇"));
 if ($PageNum == "") $PageNum = "0";
 echo "$PageNum";
}

function baidukz()
{
 global $murl,$furl;
 $url = "http://www.baidu.com/s?wd=$furl";
 $page = file_get_contents($url);
 $kzdate = "0";
 $kzdate = cut($page,"$furl", "" );
 if($kzdate!=""){
  /// 37K 2008-9-13
  $kzarray = explode ('K', $kzdate);
  $kzdate = trim($kzarray[1]);
  if(trim($kzarray[1])!=""){
   echo "$kzdate";
  }
 
 }
 else{
  echo escape("无");
 }
}


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn