A McGraw Hill Book Plug-in PHP: 100 Power Solutions
By Robin Nixon (McGraw Hill 2010, ISBN 978-0071666596)

Home | About | Buy It | Download | Contact

Select Chapter: 1  2  3  4  5  6  7  8  9 10 11 12

Chapter 7: Plug-in 45 - Use Short URL

Once you've created a short URL you need a means to access it, which you do via this plug-in which accepts a short token in a GET tail, known as a query string, and then redirects the user to the equivalent longer URL.

The Figure shows the function being used just to decode a short token, without redirecting.