I am working on a URL shortening site which uses PHP, MySQL and Apache. General idea of URL shortening as I look at open source projects: user gives a URL link and the syste
I would suggest using YOURLS which is a robust open source package to do exactly this. It's PHP/MySQL based.
http://yourls.org/#Install
From the about page:
YOURLS is a small set of PHP scripts that will allow you to run your own URL shortening service (a la TinyURL). You can make it private or public, you can pick custom keyword URLs, it comes with its own API.