A google pagerank script

A google pagerank script

<?php
function page_rank($site)
{
   
$url = ‘http://google.com/search?client=navclient-auto&ch=6-1484155081&features=Rank&q=info:’;
$fp = fopen($url.’http://’.$site, ‘r’);
$content = fread($fp, 200000);
fclose($fp);

$rank = explode(‘:’,$content);
if($rank[2] != ”)
    return $rank[2];
else
    return FALSE;
break;

}
echo ‘Google Rank: ‘.page_rank(‘getphp.net’);
?>

LEAVE A REPLY

Please enter your comment!
Please enter your name here

*