News Feed
Jobs Feed
Sections




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


blog comments powered by Disqus

Similar Posts

NETTUTS.com: 7AMP - Creating a Development Environment

DevShed: Using the Clone Magic Function in PHP 5

ParanoidFerret.com: Using Flex, PHP, and JSON to Modify a MySQL Database

NETTUTS.com: CodeIgniter From Scratch: Day 1

Enrico Zimuel's Blog: PHP session sharing using Zend Server CE and MS SQL Server


Community Events









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


unittest community zendframework2 object event functional introduction testing api framework development tool release composer language code example opinion podcast interview

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