I use codeigniter and want use Google PageRank Checker (i get it from this site:Using PHP to retrieve the Google Pagerank of any domain) as library in codeigniter.
I done it in library as this(full code my library): http://pastebin.com/8TsiT9H4
Load this library in contorola as:
$this->load->library('googlepr');
And run it in view as following code:
$gpr = new GooglePR();
$pagerank = $gpr->getPagerank('http://www.domain.com');
echo $pagerank;
But it don't give me output, How can fix it and get output?
I think you miss the PHP-Curl bindings
Install PHP-Curl and all should be good. Tips here