News Feed
Sections
News Archive


Community Events
php|tek 2008 PHP Conference



Antoine Ughetto's Blog:
Easy way to find a file in subdirectory with php
0 comments :: posted Monday February 18, 2008 @ 11:15:00
voice your opinion now!

Antoine Ughetto has posted an easy way to find a file inside any series of subdirectories with PHP:

I've made a previus post on SPL using RecursiveIterator to parse Array. Today we will use this same RecursiveIterator with a DirectoryRecursiveIterator.

The code is pretty simple and straight forward - a DirectorySearch class that takes in the directory name and recurses through the files and subdirectories to locate the file you're looking for.

tagged with: directoryrecursiveiterator find file subdirectory



developer database zend releases PHP5 PEAR framework security application ajax book job cakephp pecl package conference zendframework release code mysql

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