News Feed
Jobs Feed
Sections




Recent Jobs

News Archive
DevShed:
Using Directory Iterators to Build Loader Apps in PHP
July 06, 2009 @ 10:17:11

DevShed finishes off their "loader" series of tutorials today with this eighth part focusing on the use of Directory Iterators.

Here's where the SPL comes in, since it's possible to use a combination of its "spl_autoload_register()" function and its RecursiveDirectoryIterator class to refactor the method in question and make it shorter and tighter. In this final chapter of the series I'm going to improve the loader class developed in the previous one by incorporating some of the aforementioned SPL functions and classes.

They change up their code to use a RecursiveDirectoryIterator inside of their __autoload to remove their custom recursive code.

0 comments voice your opinion now!
tutorial autoload recursive iterator directory spl



Similar Posts

DevShed: Positioning Strings with the show_xy() Method in PDF Documents with PHP 5

Bob Majdak's Blog: Compile That PHP-GTK2, and More

Internet.com: Plotting Map Markers Dynamically Using the Google Maps API, jQuery, PHP, and MySQL

HTMLGoodies.com: PHP Tutorial - Introduction

DevShed: Migrating Class Code for a MIME Email to PHP 5


Community Events









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


release drupal job performance sqlserver wordpress symfony conference extension facebook codeigniter feature windows microsoft framework developer opinion podcast zend zendframework

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