Archive for the ‘SEO helper’ Category
May 28, 2008 by Alex Polski | 3 Comments »
Hi friends,
Sorry for the delay with new posts and thanks for your comments and opinions about my tools.
Some people have problems with getting banned by Google while PageRank checking. So I decided to write a separate post about this problem and describe possible solutions.
First of all my tools are developed as single-user tools and don’t support multi-user mode. That’s why don’t run more than one instances of the tool simultaneously.
The second reason of getting banned by Google is possibly a little delay between PageRank checks. You can set bigger delays by inserting a line to the file system/application/helpers/seo_helper.php:
function pagerank($url)
{
sleep(5);
$ch = _checksum($url);
...
I set a 5 seconds delay in the example above. You can play with your own values of the delay.
Hope this will help you. Cheers!
April 27, 2008 by Alex Polski | Comments Off
One of the ways to determine the age of the site is to use Wayback Machine. Just type your site’s URL and find the first record in results.
I wrote the function to automate this operation and included it to my SEO helper for CodeIgniter.
The following example shows how to use it:
$this->load->helper('seo');
$age = domain_age('codeigniter.com');
if ($age !== '-1')
{
echo "Year: $age[year], month: $age[month], day: $age[day]";
}
else
{
echo 'No records found!';
}
As you see this is very easy.
Download SEO helper version 1.2 for CodeIgniter
April 23, 2008 by Alex Polski | Comments Off
April 15, 2008 by Alex Polski | 1 Comment »
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!