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 44 - Create Short URL

With the rapid growth of Twitter and its short message lengths, many services have sprung up offering short URL services. These are all well and good except that they tend to also be used by spammers to disguise links that might reveal their destination. Consequently some of these services are slow, while others disappear overnight. What's more users can be wary of entering a short URL, even from an established service, because they are never sure where the URL may lead. To help diminish all these negatives this plug-in lets you offer your own short URLs using your own domain name, not a third party's, which should mean it is more trusted.

The Figure shows a long URL being shortened with this plug-in.