News Feed
Sections




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

DevShed:
A Custom Exception Class for Dynamic Twitter Signature Images with PHP
August 27, 2009 @ 15:04:05

DevShed has posted the second-to-last part of their tutorial series about creating a Twitter "badge" for your site with the custom icon and latest tweet pulled from the site. This new part looks at handling exceptions thrown by their class.

This application serves a single purpose. It accepts an input and delivers an image to the browser. In the event of an error, the script halts execution and displays that error. The problem lies in this difference in output. The calling page is expecting an image and therefore won't display the error text. So to make this useful, it might be a good idea to deliver the error text as an image instead.

They show you how to build the custom exception handling interface and the code to create the exception that will use it.

0 comments voice your opinion now!
exception tutorial twitter handling


blog comments powered by Disqus

Similar Posts

Court Ewing's Blog: Forget Concatenation; Format your strings!

Christian Weiske's Blog: Working with .phar files

Tony Lukasavage's Blog: PHP Debugging on IntelliJ IDEA 10 with Xdebug

WorkingSoftware.com.au: Configuring PHP4 and PHP5 to run concurrently on FreeBSD

DevShed: Understanding Static Properties with PHP 5


Community Events

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


laravel5 development conference opinion community api voicesoftheelephpant library unittest language introduction framework series laravel middleware podcast interview extension release wordpress

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