What is a "short URL"? Short URL or tiny URL is an URL used to represent a long URL For example, http://tinyurl.com/45lk7x can be used to represent and will be used to redirect to http://www.snippetit.com/2008/10/implement-your-own-short-url. Why people use short URL? First, because it is easy to remember. Imagine when you read an article on a magazine or newspaper that … [Read more...]
PHP: Short URL Algorithm Implementation
Few months ago, I introduced a simple algorithm that allow users to implement their own short URL into their system. Today, I have some spare time so I decided to write the short URL algorithm's implementation in PHP. At first, we define a function called shorturl() that receives a URL as the input and returns an array that contains 4 hashed values (each 6 … [Read more...]
Implement your own short URL
Short URL or tiny URL is an URL used to represent a long URL. For example, http://tinyurl.com/45lk7x will be redirect to http://www.snippetit.com/2008/10/implement-your-own-short-url. … [Read more...]