DevShed: Displaying Meaningful Error Messages when Auto Loading Classes in PHP 5
552896
DevShed has posted the next part of their series looking at handling errors thrown by the __autoload functionality of PHP. This time they enhance their previous method and allow for custom error messaging.   In this last article of the series I'm going to introduce some additional modifications to the current signature of the "__autoload()" function to make it throw exceptions that display more useful error messages.   They start by setting up the application to have something to build from (a series of PHP scripts). They add on the exception handling to throw the custom error (the "class not found" they mentioned).
472605
Latest PHPClasses.org Releases:Simple CAPTCHA ClasssynDirectorycache_TSLinkMeInSimple HTTP browserImgManClasse UploadSingleton Interfacebib_servercaText n caMathgMemCacheClasse PrestazioniText To SpeechAutoForm
689192
Finishing off their series on destructors in PHP5 applications today, DevShed has posted this new tutorial showing how to manually run the destructors of your class (in case there's ever a need).   In this final tutorial of the series I'm going to show you how to manually trigger a destructor, and in addition you'll learn how to emulate the behavior of this magic method when using PHP 4.   They not only talk about how to call the destructor manually but they also show how to call multiple destructors at the same time to destroy lots of objects at once. And, as promised, they include a method for being able to use a destructor-like bit of functionality in a PHP4 app as well.
540441
Aaron Wormus is back today on the Zend Developer Zone with another in his "Hidden Gems" series. This time, he takes a look at the "Zend Plumbing", those bits of connective code that help you make your Zend Framework applications work.   The functionality that he covers in this article are some of the min parts that a lot of ZF coders use every day and might not know it:  the Zend class (providing a suite of helper methods) built in Wrapper functions:  loadFile loadClass loadInterface isReadable dump exception  the Zend registry  Each of these is briefly described with some sample code for the loadFile, loadClass, exceptions and the Registry to give you an idea of how to use it all. As always, you can check out the Zend Framework website for all the details on each of these functionality bits.
134862
In a post a little while back, Padraic Brady wrote about an extension he whipped up to act as an interface between PHP and the Snarl notification tool (inspired by Growl from OS X).   My intention for the API is to facilitate Window's use of a soon to be announced tool for autotesting in PHP using PHPSpec.    He wants to use it in an automated testing environment that, when tests are detected in the current tests, runs the changed items and reports back the results via the Windows notification service. You can grab the code from the Google Code repository for it and test it our for yourself.
2750
On DevShed today, there's the second part in a two part series (another excerpt from the "Zend PHP Certification" from Zend) talking about getting the most out of your application and platform through some simple debugging/optimizing tools.   They start off with a look at debuggers - what they're for and a brief mention (high level) of how to use them. Next up is some simple suggestions for optimizing the performance of your application:  Hardware issues Web server issues Avoid overkill Zip it up Database optimizations  They also include a simple recommendation that all developers, looking for performance boosts or not should follow - "keep your code simple".
372040
DevShed has started up yet another PHP-related series today with this new tutorial covering part of PHP5's object functionality - destructors.   This article, the first part of a five-part series, introduces you to destructors and their use with PHP 5 programs. [...] The word "destructor" relates to certain methods or functions of a determined programming language that are responsible for destroying data that, in the context of that particular language, shouldn't exist any longer.   They create a sample class (for storing user information) and show how to integrate a destructor to remove all traces of the user's information from the properties of the class.
457694
Latest PHPClasses.org Releases:db connect classTrue Color PickerDbCodeBuilderProgramInsert or Update TablesAutomatic Drop Down MenuPlatform versioningSMTPseasyFormMagic Yahoo! Messenger Avatar GeneratorStringGridIAM-XLSphpTwitterGoogle Checkout Button
126500
DevShed is starting up another new series today, this time looking at the DirectoryIterator methods out of the Standard PHP Library functionality.   Because this class might be handy to use in projects where handling directories is a must, in this new series I'll be taking a close look at some of its most important methods. We will explore these methods appropriately in conjunction with the corresponding code samples.    They introduce the class, noting why it's handy to use and where's the best place to use it - including an example. They get into a bit more detail, looking at the key() and current() methods as well as using the rewind() method to reset the pointer for the directory.
489861
Felix Geisendorfer has posted a new blog entry he's been promising for a while now - a look at using Exceptions in a CakePHP application:   First of all. Why did I decide to experiment with exceptions in CakePHP? Well, Object::cakeError() does an ok job at providing me with a way to render some sort of internal error while I'm debug mode. However, I think that is what its really meant for, and its not the way to go for rendering errors to the user directly. [...] [All of] these things can be addressed by using PHP5s support for custom Exception classes quite elegantly.   He includes an example of the exception handling in action - an AppError controller that extends the ErrorHandler and an AppException class that extends the normal Exception class for some customized methods. Example usage is also included, showing how to check things like the Subversion version of a file and checking properties of objects.
313541
Latest PHPClasses.org Releases:Guaranix Full TextACEStereo Anaglyph ImagesStar RatingForm Table GeneratorSteggerCheck ISDNPHP date picker classwalutySuggesterSMS gateway APIPHP Cookie ClassPHP Email To DBCode MapEasy MySQL classCurl HTTP ClientrsMandelbrotMy Easy Copy
233745
Latest PHPClasses.org Releases:Cruncher classImage GalleryRCalendarAntiSpam FeedbackSatya Shopping CartSimple Abstraction LayermytoolbardbStringItShellContIP infoArray to Listpork.dbObjectShopping Cart by satya and DeepakHTMLSelectListphpSortTable
186912
Latest PHPClasses.org Releases:RequestsToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeDict TranslatorRegular Expression Selection in Event Driven XML ParsingToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeScore ScraperPHP WSDL GeneratorToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokePHP GPS LocatorToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeMySQL2ConndbsToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeAJAX-based ThesaurusToday's JokeToday's JokeToday's JokeimGalleryToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeToday's JokeFast JSONFCKEditor Plug-inODBC ConnPogProgressBar
769389
Latest PHPClasses.org Releases:Class TreeviewPHP User ClassDHTMLDumpSalatCSV Parse and ReadRSAsmb4phpClient infoTrue Singleton ClassRounded Border Table Generator
638724
Latest PHPClasses.org Releases:pop3-streamUserActionMySQLWrapperPHP AjaxOutput Buffering handlerSite Map GeneratorRandom HTML GeneratorPaginationsGoogle GraphProcess ImagesgCurlRobots_txtProgressODBC-ABMNewsletter QueueProgress ODBC ABM
139275
Popular posts from PHPDeveloper.org for the past week:PHP-Coding-Practices.com: Try-Catch Syntax WeirdnessPHPBuilder.com: Cross-Platform Database PHP DevelopmentIBM developerWorks: Java and PHP technology on AIX - Integrate the Java business application w/ DB2OpenSourceCommunity.org: What do you think makes a good CMS?Jonathan Snook's Blog: Elemental: Conditional Content with CakePHPDevShed: The Basics of Using the Factory Pattern in PHP 5Builder.com.au: PHP exploit code plants itself in GIFJohn Cox's Blog:  Linux.com Now PHP PoweredNick Halstead's Blog: Solving Programming ProblemsPHP-Tools Blog: Testing FIT
103599
Latest PHPClasses.org Releases:Factorial and Euler Constant calculationOnly DomainMulti-User Tag CloudGzOutputJetDirectPHP SerialCitizen C2202-PD Control ClassEnhanced QuickSortJSCaptchanDialogTab ClassmysqlFormHTML Graph makerEncoding Sessions