Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6715311
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:35:59+00:00 2026-05-26T08:35:59+00:00

Please provide the suitable codes for online Google Pagerank display, We can not place

  • 0

Please provide the suitable codes for online Google Pagerank display, We can not place the third party API for getting this. We can use the API from Google only. If anybody have the codes for Pagerank that would be Good for us.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T08:35:59+00:00Added an answer on May 26, 2026 at 8:35 am
    /*****************************************/
    define('GOOGLE_MAGIC', 0xE6359A60);
    
      function _zeroFill($a, $b){
        $z = hexdec(80000000);
        if ($z & $a){
          $a = ($a>>1);
          $a &= (~$z);
          $a |= 0x40000000;
          $a = ($a>>($b-1));
        }else
          $a = ($a>>$b);
        return $a;
      }
    
      function _mix($a,$b,$c){
        $a -= $b; $a -= $c; $a ^= (_zeroFill($c,13));
        $b -= $c; $b -= $a; $b ^= ($a<<8);
        $c -= $a; $c -= $b; $c ^= (_zeroFill($b,13));
        $a -= $b; $a -= $c; $a ^= (_zeroFill($c,12));
        $b -= $c; $b -= $a; $b ^= ($a<<16);
        $c -= $a; $c -= $b; $c ^= (_zeroFill($b,5));
        $a -= $b; $a -= $c; $a ^= (_zeroFill($c,3));
        $b -= $c; $b -= $a; $b ^= ($a<<10);
        $c -= $a; $c -= $b; $c ^= (_zeroFill($b,15));
        return array($a,$b,$c);
      }
    
      function _GoogleCH($url, $length=null, $init=GOOGLE_MAGIC){
        if(is_null($length))
          $length = sizeof($url);
        $a = $b = 0x9E3779B9;
        $c = $init;
        $k = 0;
        $len = $length;
        while($len >= 12){
          $a += ($url[$k + 0] + ($url[$k + 1] << 8) + ($url[$k + 2] << 16) + ($url[$k + 3] << 24));
          $b += ($url[$k + 4] + ($url[$k + 5] << 8) + ($url[$k + 6] << 16) + ($url[$k + 7] << 24));
          $c += ($url[$k + 8] + ($url[$k + 9] << 8) + ($url[$k + 10] << 16) + ($url[$k + 11] << 24));
          $_mix = _mix($a,$b,$c);
          $a = $_mix[0]; $b = $_mix[1]; $c = $_mix[2];
          $k += 12;
          $len -= 12;
        }
        $c += $length;
        switch($len){
          case 11: $c += ($url[$k + 10] << 24);
          case 10: $c += ($url[$k + 9] << 16);
          case 9 : $c += ($url[$k + 8] << 8);
          case 8 : $b += ($url[$k + 7] << 24);
          case 7 : $b += ($url[$k + 6] << 16);
          case 6 : $b += ($url[$k + 5] << 8);
          case 5 : $b += ($url[$k + 4]);
          case 4 : $a += ($url[$k + 3] << 24);
          case 3 : $a += ($url[$k + 2] << 16);
          case 2 : $a += ($url[$k + 1] << 8);
          case 1 : $a += ($url[$k + 0]);
        }
        $_mix = _mix($a,$b,$c);
        return $_mix[2];
      }
    
      function _strord($string){
        for($i = 0;$i < strlen($string);$i++)
          $result[$i] = ord($string{$i});
        return $result;
    }
    
      function getPageRank($url){
        $pagerank = -1;
        $ch = "6"._GoogleCH(_strord("info:" . $url));
        $fp = fsockopen("www.google.com", 80, $errno, $errstr, 30);
        if($fp){
          $out = "GET /search?client=navclient-auto&ch=" . $ch . "&features=Rank&q=info:" . $url . " HTTP/1.1
    ";
          $out .= "Host: www.google.com
    ";
          $out .= "Connection: Close
    
    ";
          fwrite($fp, $out);
          while (!feof($fp)){
            $data = fgets($fp, 128);
            $pos = strpos($data, "Rank_");
            if($pos === false){
            }else
              $pagerank = substr($data, $pos + 9);
          }
          fclose($fp);
        }
        return $pagerank;
    }
    /*******************************************/
    

    add above code to your script and call getPageRank($url) function which will return you exact page rank of given url.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

please provide me the possibility of my issue. Can we customize the push notification
Can someone please provide an example of creating a Java ArrayList and HashMap on
Can anyone please provide a link to download the .NET 3.5 SDK? I checked
Can someone please provide a simple example of how to consume a REST service
If this is possible, please provide a sample query or two so I can
Please provide some basic information of how TypeLiteral in Google Guice or Java EE
Can someone please provide an example of using set_bound() method from Test::MockObject module? Can
Can anyone please provide me in layman's terms the difference between developing a JRuby
Can someone please provide some insight into the the following verbosegc lines on a
Can anyone please provide me a sample build file demostrating the use of the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.