News Feed

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

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

blog comments powered by Disqus

Similar Posts PHP multiple photo thumbnail generator

Jim Plush\'s Blog: Grouping PHP classes = faster by 24%

Jim Plush's Blog: Do you use debug statements in PHP? Speed them up by 85%

Web Development Blog: Tutorial: Create a zip file from folders on the fly

Thomas Larsson\'s Blog: Asynchronous file upload with AJAX progress bar in PHP

Community Events

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

opinion framework testing laravel code interview unittest introduction release symfony2 podcast language series community list threedevsandamaybe refactor install developer api

All content copyright, 2014 :: - Powered by the Solar PHP Framework