Archive

Archive for the ‘Web Development’ Category

How to install PHP Pecl GeoIP on Linux

April 28th, 2011

If you are a webmaster and want to include php GeoIP functions in your code. Then you have to install Pecl GeoIP extension on your server. After installing this extension you can get geo data of any IP-address using geoip_record_by_name function. To install this extention follow these steps

Read more…

Author: Categories: Linux, Web Development Tags:

My first wordpress plugin for real-time visitor stat

April 26th, 2011

I am glad to inform you that my first wordpress plugin has been approved by wordpress. I have created this plugin to count online user and show their Geolocation on Google map. Read more…

Author: Categories: Web Development Tags:

How to add noindex, follow meta to wordpress tag page

April 25th, 2011

After google panda update most of wordpress users are deleting duplicate and low quality pages from google index. These pages includes tag pages and search pages. To remove these pages from  Google index. You have to add <meta name=”googlebot” content=”noindex,follow” /> in head. To add it only in tag and search pages Read more…

Author: Categories: SEO and Marketing, Web Development Tags: ,

Calculating Difference Between Two Dates Using PHP

July 12th, 2009

Calculation of difference between 2 dates is not an easy task so I m writing a function which do this job easily. This function is useful for calculate age of person by DOB (date of birth) or calculating age of record in databse
Read more…

Author: Categories: Programing, Web Development Tags:

Convert Decimal into Alphanumeric using php

July 6th, 2009

A Problem occurred when I was writing a script for shortUrl redirection. That using 5 Digit decimal numbers can cover only 105=100000 Urls but 5 digit alphanumeric (case sensitive) numbers are able to cover 622=916132832. So it is very helpful to keep Urls short.

Example

  • Using Decimal http://surl.bz/0 to http://surl.bz/99999 only 100000 Urls In 5 Digit
  • Using alphanumeric http://surl.bz/0 to http://surl.bz/ZZZZZ 916132832 Urls that’s Great choice

Read more…

Author: Categories: Programing, Web Development Tags: