Ejemplo n.º 1
0
 public static function getpagerank($url)
 {
     $query = "http://toolbarqueries.google.com/tbr?client=navclient-auto&ch=" . MainWPUtility::CheckHash(MainWPUtility::HashURL($url)) . "&features=Rank&q=info:" . $url . "&num=100&filter=0";
     $data = MainWPUtility::file_get_contents_curl($query);
     $pos = strpos($data, "Rank_");
     if ($pos === false) {
     } else {
         $pagerank = substr($data, $pos + 9);
         return $pagerank;
     }
 }