Menù
ModSeo Home
Seo Forum
Mod Rewrite
Programmazione Php
Programmazione Asp
Programmazione Html
Database Sql MySql
Seo e Posizionamento
Internet e Tecnologia
Strumenti Seo
Link Popularity Check
Pagerank Futuro
Backlink Checker
Datacenter Pagerank
Pagerank e Alexa Rank
Script
Script PHP
Script ASP
Script Cgi-Bin
Script Perl
Javascript
Altro
Classifica Membri
Siti Partners
require_once("templates/HeaderTemplate.php"); ?>
Check PageRank
Inserisci Url :
' size="20">
$website = $_REQUEST['url']; if( $website ){ if( !strstr($website,"http://") && !strstr($website,"https://") ){ $website = "http://".$website; } ?> Retrieving info for =$website?>...
$resa = linkcheck($website,'google'); $rese = AlexaCheck($website); $resi = GoogleLinks($website); $pr = GooglePageRank($website); $indexed = $resi[google][0]; $links = $resa[google][0]; ?> Website:
=$website?>
Page Rank: =$pr?> / 10
Alexa Ranking:
=$rese[alexa][0]?>
Pagine indicizzate:
=$indexed?>
BackLinks:
=$links?>
} function linkcheck($url, $engine) { global $total; $arr = parse_url($url); $url = $arr['host']; $path = "http://www.google.com/search?hl=en&lr=&ie=UTF-8&q=link%3A".$url; if(!file_exists($path)) { $data = strtolower(strip_tags(implode("", file($path)))); $data = substr($data, strpos($data, "of about")+9, strlen($data)); $data = substr($data, 0, strpos($data, " ")); if(eregi("[[:alpha:]]", $data)) { $results[$engine] = array('0', $path); } else { $results[$engine] = array($data, $path); $total+=str_replace(',', '', $data); } } else { $results[$engine] = array('n/a', $path); } return $results; } function GoogleLinks($url){ $arr = parse_url($url); $url = $arr['host']; $engine = 'google'; $path = 'http://www.google.com/search?q=inurl:'.$url.'&hl=en&lr=&ie=UTF-8&filter=0'; if(!file_exists($path)) { $data = str_replace(' ', ' ', strtolower(strip_tags(@implode('', @file($path))))); if(!strpos($data, 'did not match any documents')) { $data = substr($data, strpos($data, 'web results')+12, strlen($data)); $data = trim(substr($data, 0, strpos($data, 'for'))); //echo $data; // TEST $data = explode(' ', $data); $data = $data[(count($data)-1)]; $results[$engine] = array($data, $path); $total+=str_replace(',', '', $data); } else { $results[$engine] = array('0', $path); } } else { $results[$engine] = array('n/a', $path); } return $results; } function GetAlexaRanking($url) { $subscription_id = "09FVDRT8TEJ64C2A7Y02"; list($protocol, $uri) = split('//', $url); $url = "http://aws.amazon.com/onca/xml?Service=AlexaWebInfoService&SubscriptionId=$subscription_id&Operation=UrlInfo&Response=Rank&Url=$uri"; $xml = file_get_contents($url); if(eregi("
([^<]*)
",$xml,$r)) { $rank = $r[1]; } else { $rank = 0; } $rank = number_format($rank); return $rank; } function AlexaCheck($url){ // get Alexa Traffic Rank $arr = parse_url($url); $url = $arr['host']; $path ="http://www.alexa.com/data/details/main?q=&url=".$url; if(!file_exists($path)) { $data = strtolower(strip_tags(implode("", file($path)))); $data = substr($data, strpos($data, "traffic rank for ")+17, strlen($data)); $data = str_replace(str_replace('www.', '', $url), '', $data); $data = str_replace(': ', '', $data); $data = trim(substr($data, 0, strpos(trim($data), ' ')-1)); //echo "$data
"; // TEST if(eregi("[[:alpha:]]", $data)) { $results['alexa'] = array('0', $path); } else { $results['alexa'] = array($data, $path); } } else { $results['alexa'] = array('n/a', $path); } return $results; } function GooglePageRank($url){ // function gets PR from google site; $arr = parse_url($url); $url = $arr['host']; $url="info:".$url; $ch=GoogleCSum($url,0xE6359A60); // Counting Google control sum $host="toolbarqueries.google.com"; $hostip=gethostbyname($host); // Creating request to Google with Toolbar emulation $query ="GET /search?client=navclient-auto&ch=6".$ch."&ie=UTF-8&oe=UTF-8&features=Rank&q=".rawurlencode($url)." HTTP/1.0\r\n"; $query.="Host: $host\r\n"; $rank=-1; $query.="User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)\r\n"; $query.="Connection: Close\r\n\r\n"; $fp=fsockopen($hostip,80,$errno,$errstr,30); // Connecting to Google and getting data from it if ($fp) { fputs($fp,$query); $data=""; while (!feof($fp)) $data.=fgets($fp,4096); fclose($fp); $data=explode("\n",$data); foreach ($data as $line) if (!is_bool(strpos($line,"Rank_1"))) { $rank=explode(":",trim($line)); $rank=$rank[2]; break; } } return $rank; } // function for calculating Google URL Checksum function GoogleCSum($s,$key){ $v4=$len=strlen($s); $esi=$key; $ebx=$edi=0x9E3779B9; $p=0; if ($len>=12) for($i=0;$i
=11) $esi=unsign($esi+(ord($s[$p+10]) << 24)); if ($v4>=10) $esi=unsign($esi+(ord($s[$p+9]) << 16)); if ($v4>=9) $esi=unsign($esi+(ord($s[$p+8]) << 8)); if ($v4>=8) $edi=unsign($edi+ord($s[$p+4])+(ord($s[$p+5]) << 8)+(ord($s[$p+6]) << 16)+(ord($s[$p+7]) << 24)); else { if ($v4>=7) $edi=unsign($edi+(ord($s[$p+6]) << 16)); if ($v4>=6) $edi=unsign($edi+(ord($s[$p+5]) << 8)); if ($v4>=5) $edi=unsign($edi+ord($s[$p+4])); } if ($v4>=4) $ebx=unsign($ebx+ord($s[$p+0])+(ord($s[$p+1]) << 8)+(ord($s[$p+2]) << 16)+(ord($s[$p+3]) << 24)); else { if ($v4>=3) $ebx=unsign($ebx+(ord($s[$p+2]) << 16)); if ($v4>=2) $ebx=unsign($ebx+(ord($s[$p+1]) << 8)); if ($v4>=1) $ebx=unsign($ebx+ord($s[$p+0])); } $ebx=unsign(($ebx-$edi-$esi)^shr($esi,13)); $edi=unsign(($edi-$esi-$ebx)^($ebx << 8)); $esi=unsign(($esi-$ebx-$edi)^shr($edi,13)); $ebx=unsign(($ebx-$edi-$esi)^shr($esi,12)); $edi=unsign(($edi-$esi-$ebx)^($ebx << 16)); $esi=unsign(($esi-$ebx-$edi)^shr($edi,5)); $ebx=unsign(($ebx-$edi-$esi)^shr($esi,3)); $edi=unsign(($edi-$esi-$ebx)^($ebx << 10)); $esi=unsign(($esi-$ebx-$edi)^shr($edi,15)); return $esi; } function shr($x,$y) { $x=unsign($x); for($i=0;$i<$y;$i++) $x=floor($x/2); return $x; } function unsign($l) { $l=intval($l); if ($l>=0){ return $l; }else{ return 4294967296+$l; } } ?> require_once("templates/FooterTemplate.php"); ?>
Friskon Network :
Giochi Gratis
-
Community Chat
-
Gioco di Ruolo
-
Directory Blog