PHP Pagerank Checker API URL Fix
October 10th, 2011 | by TK |Google apparently changed the URL for the Pagerank checker API, here’s the really simple way to fix that in your PHP scripts. I’ll use PHPLD 2.2 for an example, though you can easily do this with any script…
For PHPLD just go to /include/pagerank.php open with your favorite text editor… (Make a Backup of pagerank.php just in case…)
Scroll down to line where it starts out $queryString = ‘/search?client
All you have to do is change the word search with tbr … That line will look like this:
$queryString = '/tbr?client=navclient-auto&ch='.$checksum.'&features=Rank:&q=info:'.$url;
Almost done… you’re going to look for the line that starts out $googleDomains = array and take out all the domains that start with www… leaving the domains that start with toolbarqueries. It should look something like this:
$googleDomains = array ('toolbarqueries.google.com', 'toolbarqueries.google.de', 'toolbarqueries.google.com.tr');
*** If you’re looking for a stand-alone PHP checker script, take a look at W3Lessons’ PHP Pagerank checker script.
