'How To Create Google PageRank Checker By PHP
I want a Google PageRank Checker for check pageRank a url that if was larger of 5, return (result) it is TRUE, else (less of 5) return (result) is FALSE. how is it by PHP or codeigniter?
Solution 1:[1]
Above david walsh script is not working. I am using SEOStats library present in GITHub.
Source: https://github.com/eyecatchup/SEOstats/#brief-example-of-use
Solution 2:[2]
In response/addition to Vivek's answer
Above david walsh script is not working. I am using SEOStats library present in GITHub. Source: https://github.com/eyecatchup/SEOstats/#brief-example-of-use
Actually you don't need to use the full library. SEOstats internally uses a standalone Google PageRank class that can be used as follows:
<?php
$url = 'http://somedomain.com/';
$pr = new GTB_PageRank($url);
$rank = $pr->getPageRank();
printf("The Google Pagerank of %s is %s.", $url, $rank);
The nice thing about this class, as I think, is that it supports all existing PageRank hashing algorithms (awesome, jenkins, jenkins2 and IE) and has some advanced features built in, such as suggested Toolbar-TLD and more.
You can get the code here: https://github.com/eyecatchup/SEOstats/blob/master/SEOstats/Services/3rdparty/GTB_PageRank.php
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | |
| Solution 2 | Community |
