Comment from Hello! kddcfdg interesting kddcfdg site!
Hello! kddcfdg interesting kddcfdg site!
View ArticleComment from Hello! eagccke interesting eagccke site!
Hello! eagccke interesting eagccke site!
View ArticleComment from FReNeTiC
Yesterday i was thinking about "how does a url shortner works?". I got the same conclusion as you got when you wrote the piece of code from the post :$codeset =...
View ArticleComment from Dave
Is there irony in the fact that Zeb points out Colly's article on short urls and posts the long url, so long that it runs into the next column?
View ArticleComment from Travell Perkins
Hello Jonathan, Your writeup was great. The main gem for me was the base conversion code. I wrapped it in a static class and started experimenting. Your solution, base 58/60, is a much better solution...
View ArticleComment from Abhisek
WOW!!! Cool... Months back I made a tutorial on this too: http://ad1987.blogspot.com/2008/12/create-your-own-tinyurl-with-php-and.html
View ArticleComment from Cloud Freak
This is a very nice tutorial. @Ivan: you will have collision soon if you do MD5
View ArticleComment from Zeb
great job.. there is a similar URL shortener plugin over here: http://www.colly.com/comments/ee_shortener_plugin_your_own_short_urls_using_revcanonical_and_permanent_re/
View ArticleComment from Tim Johannessen
For the compression of the ID to work properly, the value should be at least two digits. Compressing a value of 1 will remain 1 and so forth, until at least two digits are used. I was looking for a way...
View ArticleComment from Matt
Anyone interested in hosting their own URL Shortener should check out the project I manage, urlShort at http://urlshort.sourceforge.net. We’re aiming to have it include all the good features of URL...
View ArticleComment from Michael Kozakewich
I made a similar post a day or two ago (with far less graceful code), but the whole setup is kind of useless on my site (the domain alone has seventeen characters). I may be able to fit up to 40 links...
View ArticleComment from Maxime Perron Caissy
Nice article snook, the super compressed url part is especially interesting! ps. the comment numbering is brilliant, I first thought you had used images but that would have been a pain in the ass....
View ArticleComment from SharonHill
Nice way of shortening URL. I generally use http://aafter.us/ that shrinks large URL. It’s an open and free source. Regards, SharonHill
View ArticleComment from Kevin Thompson
Blindsided by the newly styled comments, I failed to include my original question... Now that you have a method for easily identifying your shortened URLs in social media, are you considering including...
View ArticleComment from Kevin Thompson
Great article. Really serves to show how simple it can be to setup your own short URL service. However, what really stood out to me is what Chris Wallace noticed... Your comments are slick! As simple...
View ArticleComment from Jamie Rumbelow
Hey Jonathan, Have you considered using rev="canonical"? Drew McLellan pointed me to it when I was recording my podcast - it's a semantic way of representing a shorter link. You simply embed a link tag...
View ArticleComment from Jakob Heuser
@Zach: To prevent duplicate links, you can also use the canonical "link" tag that google endorses: http://googlewebmastercentral.blogspot.com/2009/02/specify-your-canonical.html As per google, it's a...
View ArticleComment from JR
I took the liberty of converting your encode and decode functions into Python:import math codeset = 'Ts87HNB2US1dxhgMWCpAKmRXO0rnG4lDZkcFLqutzEYbfv6JQo3Pea5iw9VyjI' base = len(codeset) n = 300 def...
View ArticleComment from Andrew Woods
Nicely Done! I've also thought about building a url shortener, and would've done it much the same way. Although, it'd be great to know: how often do urls get shortened?, and how often a particular...
View ArticleComment from Shimon
I've wrote a short post about using base_convert not so long time ago, check it out - http://baaltshuvaslowly.blogspot.com/2009/02/tinyurl-with-one-line-of-php-easy.html
View ArticleComment from Chris Shiflett
Have you considered adding rev="canonical" support? I wrote about it here: http://shiflett.org/blog/2009/apr/save-the-internet-with-rev-canonical Here's an API call that returns the advertised short...
View ArticleComment from Jonathan Snook
@Chris Wallace: I just recently styled the comment numbers. :) They used to be a plainly styled element right next to the commenter's name. My comments are also now highlighted within the list.
View ArticleComment from Chris Wallace
Did you just recently add comment numbers? They are so smooth I thought they were being replaced with Cufon or sIFR, but alas, they are not. In an attempt to stay on topic, enjoy this FAQ from u.nu, a...
View ArticleComment from Zachary Johnson
Having just made my own URL shortener for personal use a couple weeks ago (in action here: http://a.stronaut.com/z1), I thought it was important that I share a couple of things I learned: 1. Check out...
View ArticleComment from Jonathan Snook
Just doing a little research after finding the lilURL library, I found the tighturl project, which is also open source. It does spam filtering, as well. Finally, and this is something I wasn't aware...
View ArticleComment from Jonathan Snook
@Ulf: I hadn't seen the lilURL project. Thanks for pointing it out. Admittedly, I prefer my approach as it leaves the database to what it does best: incrementing integers for primary keys. Converting...
View ArticleComment from Maciej Grajcarek
That is really nice! I was thinking how to shorten links in a smart way. Your way is really good :). Thanks!
View ArticleComment from Ivan
OK, this is sooo sweet :-) I used to simply md5 the ID and substr the first 4 characters, guess this is better ;-)
View ArticleComment from Ulf
Hey Snook! Thanks for that article, I loved the part with the explanation about the precious bytes - nice detail! Did you know about the lilURL-Project? It's kind of the same approach. Ulf
View ArticleComment from Marc Grabanski
Hey! nice job Snook. I think I'll be adding this to my blog "short"ly. And since it's a CakePHP, it'll be "cake" to implement. Man, puns at 1:30AM are easy to come by.
View Article
More Pages to Explore .....