News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHPMaster.com:
Building Your Own URL Shortener
September 21, 2012 @ 12:58:00

On PHPMaster.com today, there's a new tutorial walking you through the creation of a URL shortner - a simple tool that can be used to compact URLs into something easier to manage (and more friendly with services like Twitter).

Most of us are familiar with seeing URLs like bit.ly or t.co on our Twitter or Facebook feeds. These are examples of shortened URLs, which are a short alias or pointer to a longer page link. [...] In this article you'll learn how to create a fully functional URL shortener for your website that will work whether you use a front controller/framework or not. If you use a front controller, I'll discuss you how to easily integrate this URL shortener without having to dig into the controller's programming.

They help you create a simple database to hold the link relationships, the PHP code to create the randomized hash that represents the link and the code to shorten it. There's also the PHP code to take it the other way and decode the shortened version into the full URL. You can find the full code (ready for checkout) over on the PHPMaster.com Github account.

0 comments voice your opinion now!
url shortener service tutorial database


blog comments powered by Disqus

Similar Posts

MaltBlue.com: Zend Form Mastery with Zend_Config - Part 2, Core Form Configuration

Ivan Iordanov's Blog: extending Zend_Db_Table to create NestedSet models

Developer.com: Charting Your Course Using the Google Maps API

PHP-GTK Community Site: GtkToolbar, GtkMenubar, and PEAR XML-RPC for geo-nick

Oracle Technology Network: Scaling a PHP MySQL Web Application, Part 2


Community Events











Don't see your event here?
Let us know!


application security hhvm package podcast symfony2 install release composer language facebook opinion hack introduction framework series code unittest component dependency

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework