News Feed
Sections




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

DevShed:
Adding Validation to an Image Generator Class with PHP 5
October 02, 2007 @ 10:21:00

DevShed takes the next step in their image generation tutorial series today with part two - the addition of some validation methods to the class:

In this second part of the series I'll show you how to introduce some important modifications to the initial skeleton of the image generator class, to make it slightly more modular and independent, while maintaining its functionality nearly the same as before. Sounds pretty interesting, right?

The validation they add checks the input the developer gives the mini-app's image creation function to ensure that it's getting valid height, width, text color, etc. Exceptions are thrown when the information is incorrect.

0 comments voice your opinion now!
image generation tutorial php5 validation image generation tutorial php5 validation


blog comments powered by Disqus

Similar Posts

The Bakery: Four New Articles - Load Balancing, Request Info, UUID Behavior & Upload Thumbnails

Cory Borrow's Blog: Creating thumbs from textfiles with PHP and GD

Gergely Hodicska's Blog: What's new in PHP 5.3 - part 1: namespaces

php|architect: Vulcan Zend PHP Certification Mock Testing

JellyandCustard.com: Regular Expressions in PHP


Community Events





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


conference interview development laravel threedevsandamaybe introduction code language tips deployment list community developer series zendserver framework application podcast release api

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