PR值查询 | PageRank 查询
程序员文章站
2022-05-09 23:17:04
复制代码 代码如下:
<?php
/*
filename : http://www.computer98.com/pr.php
version : 0.02
author : computer98.com
from : www.computer98.com
last modified: 2006-12-17 1:45
remark : 转载请保留此信息,及出处。
*/
if(!empty($_request['show_source'])){
show_source("pr.php");
die(0);
}
?>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=gb2312">
<title>电脑酒吧 :: pr值查询 | pagerank 查询</title>
</head>
<body onload="javascript:document.frmpr.url.focus();">
<form name="frmpr" method="post" action="pr.php">
输入要查询的网址:
<input type="text" name="url" size="30">
<input type="submit">
</form>
<?php
if(!empty($_request['url'])){
$url=$_request['url'];
$f2= file_get_contents("http://www.getyourpagerank.com/rank.php?url=".$url);
preg_match("/pagerank:\s*(\d*)/i",$f2,$pagerank);
$hrefurl="http://".str_replace("http://","",$url);
echo "<a href=\"".$hrefurl."\" target=\"_blank\">".$url."</a> 的pr值是 <b>".$pagerank[1]."</b> , ";
$whoisurl=str_replace("http://","",$hrefurl);
$whoisurl=str_replace("www.","",$whoisurl);
$whoisurl=str_replace("/","",$whoisurl);
echo "<a href=\"http://whois.domaintools.com/".$whoisurl."\" target=\"_blank\">whois</a> , ";
//echo "<a href=\"http://www.computer98.com/whois/?whois=".$whoisurl."\" target=\"_blank\">whois</a> , ";
echo "<a href=\"http://alexa.chinaz.com/?domain=".$url."\" target=\"_blank\">alexa</a><br>";
$google_link="<iframe src=\"http://www.google.com/search?q=link:".$url."\" width=\"50%\" height=\"500\">";
$google_site="<iframe src=\"http://www.google.com/search?q=site:".$url."\" width=\"50%\" height=\"500\">";
//$baidu_link="<iframe src=\"http://www.baidu.com/s?wd=link:".$url."\">";
//$baidu_site="<iframe src=\"http://www.baidu.com/s?wd=site:".$url."\">";
$baidu_link="<a href=\"http://www.baidu.com/s?wd=link:".$url."\" target=\"_blank\">baidu link</a>";
$baidu_site="<a href=\"http://www.baidu.com/s?wd=site:".$url."\" target=\"_blank\">baidu site</a>";
}
?>
<form method=post action="http://www.ip138.com/ips8.asp" name="ipform" target="_blank">
<tr><td align="center">ip地址:<input type="text" name="ip" size="16" value="<?php echo gethostbyname($whoisurl); ?>">
<input type="submit" value="查询"><input type="hidden" name="action" value="2">
</td></tr></form>
<?php
echo $baidu_link." ";
echo $baidu_site."<br>";
echo $google_link;
echo $google_site;
?>
<a href="http://www.computer98.com/pr.php?show_source=true">show source</a><br>
</body>
</html>
复制代码 代码如下:
<?php
/*
filename : http://www.computer98.com/pr.php
version : 0.02
author : computer98.com
from : www.computer98.com
last modified: 2006-12-17 1:45
remark : 转载请保留此信息,及出处。
*/
if(!empty($_request['show_source'])){
show_source("pr.php");
die(0);
}
?>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=gb2312">
<title>电脑酒吧 :: pr值查询 | pagerank 查询</title>
</head>
<body onload="javascript:document.frmpr.url.focus();">
<form name="frmpr" method="post" action="pr.php">
输入要查询的网址:
<input type="text" name="url" size="30">
<input type="submit">
</form>
<?php
if(!empty($_request['url'])){
$url=$_request['url'];
$f2= file_get_contents("http://www.getyourpagerank.com/rank.php?url=".$url);
preg_match("/pagerank:\s*(\d*)/i",$f2,$pagerank);
$hrefurl="http://".str_replace("http://","",$url);
echo "<a href=\"".$hrefurl."\" target=\"_blank\">".$url."</a> 的pr值是 <b>".$pagerank[1]."</b> , ";
$whoisurl=str_replace("http://","",$hrefurl);
$whoisurl=str_replace("www.","",$whoisurl);
$whoisurl=str_replace("/","",$whoisurl);
echo "<a href=\"http://whois.domaintools.com/".$whoisurl."\" target=\"_blank\">whois</a> , ";
//echo "<a href=\"http://www.computer98.com/whois/?whois=".$whoisurl."\" target=\"_blank\">whois</a> , ";
echo "<a href=\"http://alexa.chinaz.com/?domain=".$url."\" target=\"_blank\">alexa</a><br>";
$google_link="<iframe src=\"http://www.google.com/search?q=link:".$url."\" width=\"50%\" height=\"500\">";
$google_site="<iframe src=\"http://www.google.com/search?q=site:".$url."\" width=\"50%\" height=\"500\">";
//$baidu_link="<iframe src=\"http://www.baidu.com/s?wd=link:".$url."\">";
//$baidu_site="<iframe src=\"http://www.baidu.com/s?wd=site:".$url."\">";
$baidu_link="<a href=\"http://www.baidu.com/s?wd=link:".$url."\" target=\"_blank\">baidu link</a>";
$baidu_site="<a href=\"http://www.baidu.com/s?wd=site:".$url."\" target=\"_blank\">baidu site</a>";
}
?>
<form method=post action="http://www.ip138.com/ips8.asp" name="ipform" target="_blank">
<tr><td align="center">ip地址:<input type="text" name="ip" size="16" value="<?php echo gethostbyname($whoisurl); ?>">
<input type="submit" value="查询"><input type="hidden" name="action" value="2">
</td></tr></form>
<?php
echo $baidu_link." ";
echo $baidu_site."<br>";
echo $google_link;
echo $google_site;
?>
<a href="http://www.computer98.com/pr.php?show_source=true">show source</a><br>
</body>
</html>