In my previous post about Convert Decimal into Alphanumeric using php you can find the php code to convert any large decimal number in small case sensitive alphanumeric string. Which is very useful for creating random user id or for url shortening script while keeping the length of id small and unique. In this article you will find the php code to reveres it means alphanumeric into decimal. Read more…
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…
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…
Recent Comments