Archive for the ‘SEO helper’ Category


May 28, 2008 by Alex Polski | 1 Comment »

How not to be banned by Google while PageRank checking

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!

Share and Enjoy:
  • del.icio.us
  • Digg
  • Reddit
  • Ma.gnolia
  • Technorati
  • Propeller
  • Facebook
  • StumbleUpon
  • Furl
  • blogmarks
  • Google
  • E-mail this story to a friend!


April 27, 2008 by Alex Polski | No Comments »

How old is your site?

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

Share and Enjoy:
  • del.icio.us
  • Digg
  • Reddit
  • Ma.gnolia
  • Technorati
  • Propeller
  • Facebook
  • StumbleUpon
  • Furl
  • blogmarks
  • Google
  • E-mail this story to a friend!


April 23, 2008 by Alex Polski | No Comments »

How to check Alexa Rank in PHP

It’s more simpler than you think! Just use my SEO helper for CodeIgniter like in this example:

$this->load->helper('seo');
echo alexarank('alexpolski.com');

Note that SEO helper requires Curl library.

You can download SEO helper 1.1 for CodeIgniter here.

Share and Enjoy:
  • del.icio.us
  • Digg
  • Reddit
  • Ma.gnolia
  • Technorati
  • Propeller
  • Facebook
  • StumbleUpon
  • Furl
  • blogmarks
  • Google
  • E-mail this story to a friend!


April 15, 2008 by Alex Polski | No Comments »

How to check Google PageRank in PHP

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!

Share and Enjoy:
  • del.icio.us
  • Digg
  • Reddit
  • Ma.gnolia
  • Technorati
  • Propeller
  • Facebook
  • StumbleUpon
  • Furl
  • blogmarks
  • Google
  • E-mail this story to a friend!