Sam Farmer

Growing up I never imagined I would play bass guitar for the Dave Matthews Band. And indeed it never happened.

But I have become passionate about making software.

Turn Long URLs in to Short Ones with ShortURL

December 10, 2007

I have just released a new project on RIAForge called ShortURL that utilizes the onMissingTemplate function of ColdFusion 8. The full project description:

Short URL takes any URL then creates a random 6 character string and adds .cfm to it. When the link is clicked on onMissingTemplate receieves the URL, looks up the full URL and forwards the user to the full URL. Very similar to tinyURL and other services except this is hosted on your domain.

Jason Delmore suggested a while back that more ColdFusion open-source projects should have an install file. I have taken an attempt at this so install.cfm creates a database table and alters a setting in the Application.cfc file. After downloading the project, unzip it and run install.cfm.

This is a first release so if you find any problems let me know (we have been using this at Interfolio for 6 weeks with no problems).

No Comments

Some comments have been lost over the years due to moving hosts.


More blog entries that I have written.

Code coloring by PRISM.