In a former life, I wrote a small program that created shorter URLs, it was called BURL: A Better URL. It was very much like TinyURL or any other URL shortening service, except that I wrote it. It was a proof-of-concept URL shortening SaaS that attempted to provide more context to the link by embedding the registered domain name in the shortened URL. It lived a short life before spammers found it and I had to shut it down.
The source code was released under a GNU GPL license, however I never reposted it after I took the site down. I received an email today wondering if I would share the BURL code (the answer being, “Of course!”).
Long story short, here is the long lost BURL source code:
There’s an included readme file, but setup is really simple. There are two files (index.html and rpc.php). Put them both in a folder. Create the mySQL database (details are in the readme file) and setup your .htaccess file (again, details are in the readme file).
I would like to strong point out that this is code that I wrote 3 years ago. I would have been 19 at the time. I would like to think that my programming ability has matured since then.