How to Write a URL Shortener Script with PHP
A URL shortener is a useful script to develop and it's pretty easy if you're familiar with PHP. URL shorteners are being used more now than ever because people need to post short links on Twitter. Long links can sometimes take up the entire 140 character limit Twitter imposes on each 'tweet'. So, the solution is to shrink a long URL into a short one.
Click here to view the demo and the source code
With this script, you can shrink a link like this:
http://www.johnboy.com/about-us/news/a-better-php-upload-progress-bar-using-jquery
into this:
http://johnboy.me/4yRh7
Also, it's possible to let people register on your website so they can manage all their URLs, tracking hits, visitor locations and more.
The following code is pretty straight forward for beginner PHP developers, but feel free to contact us if you have any questions or run into any problems with the script.
Click here to view the demo and the source code
Categories
· Mobile (1) · Projects (50) · Tutorials (12) · PHP (12) · jQuery (5) · MySQL (4)
View by date
· View All · February 2012 · January 2012 · December 2011 · November 2011 · October 2011 · September 2011 · July 2011 · June 2011 · May 2011 · April 2011 · March 2011 · February 2011 · January 2011 · December 2010 · November 2010 · October 2010 · September 2010 · July 2010 · May 2010 · April 2010 · February 2010 · January 2010 · November 2009 · August 2009 · July 2009 · May 2009 · April 2009 · March 2009 · February 2009 · January 2009 · December 2008 · November 2008 · October 2008 · June 2008 · May 2008 · April 2008