Simple Function you can get google page rank of any website this is great working on all server.
function pagerank($url) {
if(function_exists('curl_init')) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://api.fusionswift.com/pagerank/?url=' . $url);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$googleurl = curl_exec($ch);
curl_setopt($ch, CURLOPT_URL, $googleurl);
$out = curl_exec($ch);
curl_close($ch);
} else {
$googleurl = file_get_contents('http://api.fusionswift.com/pagerank/?url=' . $url);
$out = file_get_contents($googleurl);
}
return substr($out, 9);
}
?>
Atiq Ur Rehman
http://www.wsworth.com
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment