The following two functions are used to obtain the Web site indexed query source, which is used to query Baidu snapshot and ingest page oh.
The following two functions are used to obtain the Web site indexed query source, which is used to query Baidu snapshot and ingest page oh.
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, "Find related pages about", "article"));
if ($PageNum = = "") $PageNum = Str_replace (",", "", Cut ($page, "Find related Pages", "article"));
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 ("none");
}
}
http://www.bkjia.com/PHPjc/445053.html www.bkjia.com true http://www.bkjia.com/PHPjc/445053.html techarticle The following two functions are used to obtain the Web site indexed query source, which is used to query Baidu snapshot and ingest page oh. The following two functions are used to obtain the source of the website ingest query, ...