PageRank (PR) 值查询,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);
}
?>



电脑酒吧 :: PR值查询 | PageRank 查询



输入要查询的网址:



if(!empty($_REQUEST['url'])){
    
$url=$_REQUEST['url'];
    
$f2file_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 
".$hrefurl."/" target=/"_blank/">".$url." 的PR值是 ".$pagerank[1]." , ";
    
$whoisurl=str_replace("http://","",$hrefurl);
    
$whoisurl=str_replace("www.","",$whoisurl);
    
$whoisurl=str_replace("/","",$whoisurl);
    echo 
".$whoisurl."/" target=/"_blank/">WHOIS , ";
    
//echo "WHOIS , ";
    
echo ".$url."/" target=/"_blank/">ALEXA
"
;

    
$google_link=".$url."/" width=/"50%/" height=/"500/">";
    
$google_site=".$url."/" width=/"50%/" height=/"500/">";
    
//$baidu_link="";
    //$baidu_site="";

    
$baidu_link=".$url."/" target=/"_blank/">baidu link";
    
$baidu_site=".$url."/" target=/"_blank/">baidu site";
}
?>

IP地址:echo gethostbyname($whoisurl); ?>"> 


    echo $baidu_link."  ";
    echo 
$baidu_site."
"
;
    echo 
$google_link;
    echo 
$google_site;
?>
show source


 

你可能感兴趣的:(PHP)