Home  >  Article  >  Backend Development  >  PR value query | PageRank query_PHP tutorial

PR value query | PageRank query_PHP tutorial

WBOY
WBOYOriginal
2016-07-21 15:58:351313browse

Copy code The code is as follows:

/*
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 : Please keep this information and the source when reprinting.
*/

if(!empty($_REQUEST['show_source'])){
show_source("pr.php");
die(0);
}
?>



Computer Bar :: PR Value Query | PageRank Query



Enter the URL to be queried:



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 "".$url." The PR value is " .$pagerank[1]." , ";
$whoisurl=str_replace("http://","",$hrefurl);
$whoisurl=str_replace("www." ,"",$whoisurl);
$whoisurl=str_replace("/","",$whoisurl);
echo "WHOIS , ";
//echo "WHOIS , ";
echo "ALEXA
";

$google_link="