搜索
首页php教程php手册php baidu 收录查询程序

 代码如下 复制代码

*/
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



永久链接:

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

声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn

热AI工具

Undresser.AI Undress

Undresser.AI Undress

人工智能驱动的应用程序,用于创建逼真的裸体照片

AI Clothes Remover

AI Clothes Remover

用于从照片中去除衣服的在线人工智能工具。

Undress AI Tool

Undress AI Tool

免费脱衣服图片

Clothoff.io

Clothoff.io

AI脱衣机

AI Hentai Generator

AI Hentai Generator

免费生成ai无尽的。

热门文章

R.E.P.O.能量晶体解释及其做什么(黄色晶体)
3 周前By尊渡假赌尊渡假赌尊渡假赌
R.E.P.O.最佳图形设置
3 周前By尊渡假赌尊渡假赌尊渡假赌
R.E.P.O.如果您听不到任何人,如何修复音频
3 周前By尊渡假赌尊渡假赌尊渡假赌

热工具

螳螂BT

螳螂BT

Mantis是一个易于部署的基于Web的缺陷跟踪工具,用于帮助产品缺陷跟踪。它需要PHP、MySQL和一个Web服务器。请查看我们的演示和托管服务。

SecLists

SecLists

SecLists是最终安全测试人员的伙伴。它是一个包含各种类型列表的集合,这些列表在安全评估过程中经常使用,都在一个地方。SecLists通过方便地提供安全测试人员可能需要的所有列表,帮助提高安全测试的效率和生产力。列表类型包括用户名、密码、URL、模糊测试有效载荷、敏感数据模式、Web shell等等。测试人员只需将此存储库拉到新的测试机上,他就可以访问到所需的每种类型的列表。

PhpStorm Mac 版本

PhpStorm Mac 版本

最新(2018.2.1 )专业的PHP集成开发工具

Dreamweaver CS6

Dreamweaver CS6

视觉化网页开发工具

禅工作室 13.0.1

禅工作室 13.0.1

功能强大的PHP集成开发环境