PHP头条
热点:

查百度—百度网站权重SEO工具查询


查百度—百度网站权重SEO工具查询
<html>
<title>查百度—百度网站权重SEO工具查询</title>
<meta http-equiv=Content-Language content=zh-cn>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name=keywords content="百度关键字,关键字排名,关键字查询">
<meta name="description" content="百度关键字查询系统的主要功能是:查询百度搜索引擎教程某个关键字的搜索结果中是否包含您的网页,并且能够查询出您的网页排在第几页.">
<meta name="robots" content="index, follow" />
<meta name="googlebot" content="index, follow" />

<style type="text/css教程">
<!--
.STYLE1 {color: #666666}
.STYLE3 {font-size: 12px}
.STYLE6 {color: #0000FF}
.STYLE7 {color: #333333}
-->
</style>

<script language="JavaScript">
function check_value()
{
 if (document.myform.kw.value=="")
 {
  alert("对不起,关键字不能为空!");
  document.myform.kw.focus();
  return false;
 } 
 
 if (document.myform.url.value=="")
 {
  alert("对不起,网址不能为空!");
  document.myform.url.focus();
  return false;
 } 

}
</script> 


<body>


<H1>百度网站权重(SEO)查询工具</H1>
<br>
<form id="myform" name="myform" method="get" action="so.php教程" target="_blank" onSubmit="return check_value();">
  <label>请输入关键字:
  <input name="kw" type="text" size="30" />
  </label>
  <p>
    <label>请输入网址:&nbsp;&nbsp;
    <input name="url" type="text" size="30" />
    </label>
 <br>
 <span class="STYLE1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></p>

    <p>
 <label>查询深度:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 <input type="text" name="depth" size="30" />
 </label>
 <br>
 <span class="STYLE1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="STYLE3">查询深度指的是要查询的总页数,默认为10页度</span></span></p>
    <p>
    <label>
    <input type="submit" name="Submit" value="查询我网站的权重" />
    </label>
  </p>
</form>

<h5>
  <span class="STYLE7 STYLE3">百度关键字查询系统的主要功能是:查询百度搜索引擎某个关键字的搜<br>
索结果中是否包含您的网页,并且能够查询出您的的网页排在第几页.如果排名较差可以考虑适当的再忧化一下您的网站了。<br>
  </span><br>
  近日将会推出站长和百度的更多实用功能,敬请关注!
</h5>

 


</body>

</html>
//php处理代码

<?php

function get_microtime()
{
 list($usec, $sec) = explode(" ",microtime());
    return ((float)$usec + (float)$sec);
}

$time_start = get_microtime();
set_time_limit(0);
$kw=$_GET["kw"];
$url=$_GET["url"];
$depth=$_GET["depth"];
$next=1;$pn=0;$flag=0;$n=1;$ps教程=0;
$baseurl="http://www.baidu.com/s?";
$kw=str_replace("+","%2B",$kw);
$kw=str_replace(" ","%20",$kw);

if($depth==""||$depth<=0) $depth=10;
if($depth>76) $depth=76;

echo "<title>百度网站关键字权重查询 -- ".$kw."</title>";
echo "<H2>百度网站关键字权重查询结果</H2>";
//echo "<br>";
echo "<br>查询深度为:<strong>".$depth."</strong><br>";

while($next==1)

 $baidu_url=$baseurl."lm=0&si=&rn=10&tn=wangcong&ie=gb2312&ct=0&wd=".$kw."&pn=".$pn."&cl=3";
 $str=file_get_contents($baidu_url);
 $baidu_url=str_replace("%20","+",$baidu_url);
 
 if(strpos($str,$url))
 {
  if($n==1) echo "在百度中查找关键字:'<strong>".$kw."</strong>',来自'<strong>".$url."</strong>'的结果有:<br><br>";  
  $pagenum=$pn/10+1;
  echo "<br>&nbsp;&nbsp;第".$n."条结果,   ";
  echo "在百度搜索结果中排在第".$pagenum."页";
  echo "<br>";
  echo "&nbsp;&nbsp;<a href=".$baidu_url." target=blank>点此查看</a>";  
  echo "<br><br>";  
  $flag=1;
  $n=$n+1;
 }
 
 $pn=$pn+10; 
 $ps=$ps+1;
 if($ps==$depth) $next=0;
 if(!strpos($str,"<font size=3>下一页</font>")) $next=0;  //判断有没有下一页;
}

$time_end = get_microtime();
$time = $time_end - $time_start;
if($flag==0) echo "<br>在当前的深度条件下没有找到来自 <strong>".$url."</strong> 的结果,您的忧化还有待进步,您可以尝试加大查询深度.<br><br>";

$n=$n-1;
echo "<br><strong>统计信息:</strong>一共找了".$ps."页,找到".$n."条相关结果,耗时:".$time."秒.<br><br><br>";
?>

www.phpzy.comtrue/php/11176.htmlTechArticle查百度—百度网站权重SEO工具查询 查百度百度网站权重SEO工具查询 html title查百度百度网站权重SEO工具查询/title meta http-equiv=Content-Language content=zh-cn meta http-equiv=Content-Type content=text/htm...

相关文章

    暂无相关文章
相关频道:

PHP之友评论

今天推荐