Zjísti si pagerank
if(!empty($_POST['url'])) {
if(function_exists('curl_init')) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://api.fusionswift.com/pagerank/?url=' . $_POST['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=' . $_POST['url']);
$out = file_get_contents($googleurl);
}
$pieces = explode(':', $out);
$pr = $pieces[2];
$url = 'http://fusionswift.com/';
echo '
' . $_POST['url'] . ' has a pagerank of ' . trim($pr) . '.
';}
?>
Vlož stránku na které chceš zjístit pagerank
Note: Google™ search engine and PageRan™ algorithm are the trademarks of Google Inc.