News Feed
Jobs Feed
Sections




Recent Jobs

News Archive
Antoine Ughetto's Blog:
Easy way to find a file in subdirectory with php
February 18, 2008 @ 11:15:00

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.

0 comments voice your opinion now!
directoryrecursiveiterator find file subdirectory



Similar Posts

Dave Dash's Blog: symfony and the .htaccess file

Ask Apache Blog: A better way to use PDF files online

PHPHacks.com: Security in PHP

DevShed: Building File Uploaders with PHP 5

DevShed: Handling File Data with the Facade Pattern in PHP 5


Community Events









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


wordpress zend database zendframework microsoft windows extension phpunit developer codeigniter job conference doctrine opinion facebook release framework security drupal symfony

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