How to Recursively Traverse File Directories with PHP RecursiveDirectoryIterator

By Lon Hosford You can avoid writing recursive function to traverse through tree structures like you server file system. PHP has several Iterator classes starting with version 5. In this article we will look at the RecursiveDirectoryIterator class. We will build a utility function to use the RecursiveDirectoryIterator class to provide a text listing of…

Click here to read the full post!

Web Development Training