PR值查詢 | PageRank 查詢
更新時間:2006年12月20日 00:00:00 作者:
復制代碼 代碼如下:
<?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">
輸入要查詢的網(wǎng)址:
<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 >show source</a><br>
</body>
</html>
相關文章
關于PHP中Session文件過多的問題及session文件保存位置
PHP的默認機制:每一次php請求,會有1/100的概率(默認值)觸發(fā)“session回收”。接下來通過本文給大家介紹關于PHP中Session文件過多的問題及session文件保存位置,需要的朋友參考下2016-03-03laravel 實現(xiàn)根據(jù)字段不同值做不同查詢
今天小編就為大家分享一篇laravel 實現(xiàn)根據(jù)字段不同值做不同查詢,具有很好的參考價值,希望對大家有所幫助。一起跟隨小編過來看看吧2019-10-10ThinkPHP框架實現(xiàn)session跨域問題的解決方法
這篇文章主要介紹了ThinkPHP框架實現(xiàn)session跨域問題的解決方法,需要的朋友可以參考下2014-07-07PHP中通過exec調用python腳本報ModuleNotFoundError錯誤問題及解決方法
這篇文章主要介紹了解決php中通過exec調用python腳本報ModuleNotFoundError錯誤,本文是在 Ubuntu 20.04 上以 ubuntu 用戶身份進行的測試,需要的朋友可以參考下2023-07-07