Anyone know of a custom URL shortener that also works on localhost (for testing)?
I dont have an answer for ya but im reading this article right now, i think it requires a ruby environment but ill keep searching because i was curious about this as well.
http://blog.pilsch.com/past/2009/6/7/shorten_your_own_damn_urls/ Nevermind, looks like too much work and a little bit outdated..
Different resource: http://forum.mamp.info/viewtopic.php?f=2&t=7778
I have no idea if it will work locally, but if you are using WordPress, check out the Pretty Link plugin.
Thanks for the suggestions, guys. I think a plugin might be a bit heavy. I was hoping for something like this: https://github.com/mathiasbynens/php-url-shortener
Not sure if it works locally, though.
I think that link I posted above is the answer. Will update tomorrow after testing.
So after I've installed the database and edited everything I needed to, I can't seem to get it to work.
<input id="fe_text" onChange="clip.setText(this.value)" type="text" value="javascript:(function(){document.location='http://chrisburton.me/shorten?url='+encodeURIComponent(location.href)}());" />
It spits out the javascript instead of the actual short url.
Anyone know of a custom URL shortener that also works on localhost (for testing)?
I dont have an answer for ya but im reading this article right now, i think it requires a ruby environment but ill keep searching because i was curious about this as well.
http://blog.pilsch.com/past/2009/6/7/shorten_your_own_damn_urls/ Nevermind, looks like too much work and a little bit outdated..
Different resource: http://forum.mamp.info/viewtopic.php?f=2&t=7778
I have no idea if it will work locally, but if you are using WordPress, check out the Pretty Link plugin.
Thanks for the suggestions, guys. I think a plugin might be a bit heavy. I was hoping for something like this: https://github.com/mathiasbynens/php-url-shortener
Not sure if it works locally, though.
I think that link I posted above is the answer. Will update tomorrow after testing.
So after I've installed the database and edited everything I needed to, I can't seem to get it to work.
<input id="fe_text" onChange="clip.setText(this.value)" type="text" value="javascript:(function(){document.location='http://chrisburton.me/shorten?url='+encodeURIComponent(location.href)}());" />It spits out the javascript instead of the actual short url.