Table of Contents
内共收录了网站( 个页面" >百度在最近 内共收录了网站( 个页面
Home php教程 php手册 php baidu 收录查询程序

php baidu 收录查询程序

May 25, 2016 pm 04:57 PM

 代码如下 复制代码

*/
header('content-type: text/html; charset=utf-8');
require('function.php');

http://pic1.phprm.com/2010/10/26/http://pic1.phprm.com/2010/10/26/http://pic1.phprm.com/2010/10/26/http://pic1.phprm.com/2010/10/26/http://pic1.phprm.com/2010/10/26/http://pic1.phprm.com/2010/10/26/$url.jpg.jpg.jpg.jpg.jpg.jpg = strtolower(trim($_get['url']));
$lm = intval($_get['lm']);
$pn = intval($_get['pn']);

$url = getshorturl($url);

if (empty($pn)) $pn = 1;

switch ($lm) {
 case 1 :
  $timestr = '24小时';
  break;
 case 7 :
  $timestr = '一星期';
  break;
 case 30 :
  $timestr = '一个月';
  break;
 case 360 :
  $timestr = '一年';
  break;
 default :
  $timestr = '所有时间';
  break;
}
?>



if (empty($url)) {
?>
35dir百度近日收录查询-35分类目录


} else {
?>
<?php echo $url;?>百度最近<?php echo $timestr; ?>收录详情-35分类目录


}
?>







网站导航:35分类目录 | open directory


 
     if (!empty($url)) {
 ?>
   
按时间段查询: 最近24小时  最近一星期  最近一个月  最近一年  总收录量

 

       $query_url = 'http://www.baidu.com/s?wd=site%3a'.$url.'&pn='.$pn.'&lm='.$lm;
  $line_arr = @file($query_url);
   
  $content = implode('###', $line_arr);
  $content = @mb_convert_encoding($content, 'utf-8', 'gb2312');
  
  //index
  if (preg_match('/找到相关网页(.*?)篇/i', $content, $index)) {
   $baiduindex = str_replace('约', '', $index[1]);
  } else {
   $baiduindex = '-';
  }
  ?>
     

      

百度在最近 内共收录了网站( 个页面


         

      $content = strstr($content, '
   $end = strpos($content, '
', $content);
 
   //showpage
   if (preg_match('/

(.*?)/', $content, $page_arr)) {
    $showpage = str_replace('s?wd=site%3a', '?url=', $page_arr[1]);
    $showpage = str_replace('[', '', $showpage);
    $showpage = str_replace(']', '', $showpage);
   }
 
   $i = 0;
   $strhtml = '

';
   $strhtml .= '
'.$showpage.'
';
 
   echo $strhtml;
   ?>
      
  
 
        }
 ?>
  


function文件

function getfullurl($url) {
 if ($url != "") {
  $url_parts = parse_url($url);
  if ($url_parts['scheme'] == "") {
   $url = "http://".$url;
  }
 }
 return $url;
}
 
function getshorturl($url) {
 if ($url != "") {
  $url_parts = parse_url($url);
        if ($url_parts['host'] == "") {
   $url = $url_parts['path'];
  } else {
            $url = $url_parts['host'];
        }
 }
 return $url;
}
 
function format_number($number) {
 if ($number == '') return "-";
 $nlen = strlen($number);
 while ($nlen > 3) {
  $fnumber = ",".substr($number, $nlen - 3, 3).$fnumber;
  $number = substr($number, 0, -3);
  $nlen = strlen($number);
 }
  
 if ($nlen   $fnumber = $number.$fnumber;
 }
 return $fnumber;
}
?>

http://www.phprm.com下载地址

http://www.phprm.com



永久链接:

转载随意!带上文章地址吧。

Statement of this Website
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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)