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

NETTUTS.com:
Run Your Own TinyURL Service With Phurl
Jan 16, 2009 @ 21:31:59

In this recent tutorial from the NETTUTS.com website they show how you can create your own URL shortening service (think tinyurl or tr.im) with the help of the Phurl PHP application.

URL shortening services are a must if microblogging services like Twitter are to work. In 140 characters, you don't want the URL you're linking to eating up 100 of them. Or worse, it might not even fit. Enter TinyURL, and a bunch of other services that give you a shorter custom URL pointing to the target site. But why not roll your own, using Phurl? Let's do it!

The tutorial walks you through the installation (quick and easy thanks to a graphical installer) and some usage examples (with screenshots). A few other things - like branding and allowing multiple URLs - are suggested as future enhancements.

tagged: tinyurl service phurl tutorial shorten url

Link:

Raphael Stolt's Blog:
Tinyizing URLs with Zend_Http_Client
Nov 03, 2008 @ 13:55:00

In this new post today Raphael Stolt shows how to use the Zend_Http_Client component of the Zend Framework to "tinyize" a URL.

In a recent blog post Dave Marshall outlined a quick workaround for tweeting via the Zend_Http_Client component which is a reasonable approach for calling services that aren't in the Zend Framework core yet like Zend_Service_Twitter or are not supported out of the box. Therefore this post will try to describe a Zend Framework way of creating tinyized URLs.

He creates a UrlShorterner interface containing a shortenize() method that automates sending a URL over to the tinyurl.com web service and returning the results.

tagged: tinyize tinyurl zendhttpclient shorten url

Link:


Trending Topics: