Skip to main content
September 26, 2006
Question

tinyurl (small url, short url) script

  • September 26, 2006
  • 1 reply
  • 1506 views
Hi all,

Has anyone out there developed a tinyurl script that runs on cf? There are several version availble out there for php, but my ISP's set up has CF and PHP mutually-exclusive from each other on the same server. Basically, I want to be able to turn an URL like http://www.mydomain.com/query.cfm?id=54687856456454545645645624564564234544sd54fdsfw5e4r6542654456234w5434 into http://www.mydomain.com/123.

Can anyone please help? Thank you very much.

1 reply

September 26, 2006
Check out the tinyURL cfc.
September 26, 2006
MikerRoo,

Thank you for the reply. Will it return an URL with the tinyurl.com domain name or my own domain name?

September 26, 2006
It uses tinyurl.com.

It should be pretty simple to roll your own tiny url generator: You just need one DB table and two functions.

Keep in mind that studies show it is usually better to use short, understandable urls like: http://mysite.com/history/sernum/1234?page=2 .