Sep 02 2008
Getting Pagerank of Websites through PHP
Google is today one of the most important website in world wide web, Google search result has become one of the most important services for world wide web users.
A full fledged SEO industry is running on the google pagerank algorithm decided by Google Inc
I have seen a lot of developers asking the method of getting google pageranks and baclinks with the help of php.
The Google search results are ranked by page rank.
We are going to use Php class “Google PR” from Phpclasses.org
Download the Class file from here
<?php
//Include and initiate the class this line tutorial assumes that this code and class are situated in same folder
include_once(“class.googlepr.php”);
//initate a new object
$rank = new GooglePR();
//Query the pagerank of website
echo “PageRank : ” .$gpr->GetPR(“http://www.mrdbs.com/”) .“\n”;
?>