April 15, 2008 by Alex Polski
My previous post was about Curl library for CodeIgniter. And now it’s time to tell you a main secret - how we will check Google PageRank in Mass PageRank Checker tool.
As I started development with CodeIgniter, I wrote a little CI-helper for SEO functions and added Google PageRank cheking function. Later I will add other useful functions to this helper.
You can download SEO helper here.
You wanna ask me how I did it? It’s quite simple! I learned the code of seo4firefox addon (it’s javascript) and wrote the same in PHP :-)
To install it you need copy seo_helper.php file to the system/application/helpers folder of your CodeIgniter instance.
And now let’s see the example of using.
$this->load->helper('seo');
$pr = pagerank('http://alexpolski.com/');
It’s more than simply! Enjoy!
This entry was posted on Tuesday, April 15, 2008 at 6:54 am and is filed under CodeIgniter, SEO helper.
You can leave a response, or trackback from your own site.
Related posts
« Curl library for CodeIgniter
Finally, Mass PageRank Checker tool! »
Leave a Reply
Posted on August 22nd, 2008 at 4:47 pm
Hi Alex, I am delighted to have found this beautiful and simple code. Thank you for it.
I want to ask your permission to port and release this code for Kohana, a framework derived from CodeIgniter. You can consult it here: kohanaphp.com.