News Feed
Sections




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

DevShed:
Working with Directory Iterators and Proxy Classes with PHP 5
January 09, 2007 @ 13:21:05

DevShed is wrapping up their "Building Proxy Classes with PHP5" series today with this last tutorial about working with directory iterators and proxy classes.

Since in the first part of the series I showed you how to create a proxy class for processing simple XML strings, in this installment I'm going to teach you how to create a proxy object that can be used in conjunction with the "DirectoryIterator" class that comes with PHP 5.

They start with the definition of a proxy class, the base to start from, and improve its functionality through additional methods like getSize, getPath, and getTimeStamps (using the iterators). The complete the development by pulling the parts together and creating a final example that loops through a given path and displays various info about the directory/files inside (size, names, timestamp, etc).

0 comments voice your opinion now!
proxy class directoryiterator size timestamp tutorial class proxy class directoryiterator size timestamp tutorial class


blog comments powered by Disqus

Similar Posts

SitePoint PHP Blog: Using Solarium with SOLR for Search Advanced

Jonathan Snook's Blog: Multiple Validation Sets in CakePHP 1.2

Ilia Alshanetsky\'s Blog: PHP 5.1.1 Released! (and a Rant)

PHPit.net: Taking a first look at the AutoCRUD for PHP library

NetTuts.com: Managing Cron Jobs with PHP


Community Events

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


framework community version opinion introduction unittest language series laravel release example library list video php7 voicesoftheelephpant api podcast interview laravel5

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