Tuesday, September 27, 2011

PHP Google PageRank Script

Finding Google PageRank for multiple URLs is difficult process,  Here is the my solution to find Google PageRank for multiple URLs at the same time, PR Finder PHP Script here is the best solution for Finding PR for any web url. hope this very usefull for your projects.

PHP Google PageRank finder Script 

 Main Function (Download Full Script it Work like demo)

# Desc: function to check the Given URL with http:// and fetch PR
# Param: $url as String
# Depen: fetch_google_page_rank
# Return: Gogole Rank as Integer
function fetch_google_page_rank($url) {
 $url = strstr($url,"http://")? $url:"http://".$url;
    $fp = fsockopen("toolbarqueries.google.com", 80, $errno, $errstr, 30);
    if (!$fp) {
        echo "$errstr ($errno)<br />\n";
        } else {
        $out = "GET /tbl?client=navclient-auto&ch=".CheckHash(HashURL($url))."&features=Rank&q=info:".$url."&num=100&filter=0 HTTP/1.1\r\n";
        $out .= "Host: toolbarqueries.google.com\r\n";
        $out .= "User-Agent: Mozilla/4.0 (compatible; GoogleToolbar 2.0.114-big; Windows XP 5.1)\r\n";
        $out .= "Connection: Close\r\n\r\n";
        fwrite($fp, $out);

        while (!feof($fp)) {
            $data = fgets($fp, 128);
            $pos = strpos($data, "Rank_");
        if($pos === false){} else{
                $pagerank = substr($data, $pos + 9);
        return (int)$pagerank;
Kindly Download the full Script
and Also checkout the New Updates of Page Rank Prediction from Google
Google Changes on Toolbar Queries to Find out Page Rank 

Download This Script     Live Demo     Download Script


  1. Thanks a lot .. i was searching for this script very badly. i was trying to apply the SEOSTAT script but there script was generating some error. Thanks for this script really appericiate it.

  2. Thanks for this! I mentioned this Pagerank script in a post on my blog about the recent changes to the api url.

  3. Hi I am Michel, This is the better script to find google PageRank, Thanks Guys.

  4. Thanks for a good PR finder script !

  5. Thanks really for that i was looking in google but i did't found nothing good

  6. thx for your script

  7. Thanks. Tested this and works great.

  8. This is great. I'm even able to integrated this with classic asp. Thanks!

  9. This is too good. Thank you so much. Is there anything like this to find the keyword ranking in google ?

  10. Thank you so much. I downloaded it.

  11. Thx for your script.

  12. Thank you.......

  13. Work perfect thanks man

  14. Thanks a lot..
    I try to find this kind of script almost a week..

  15. I will give you 80 NICHE Relevant Blog Comments safe and effective for your site to Rank on Google and other Search Engine. You get 80 HIgh Quality NICHE Relevent links in a 3 days for only in 5$. 80 Niche Relevant Blog Comments

  16. Great! It sounds good. Thanks for sharing.. blog comments