http://www.sitepoint.com/list-files-and-directories-with-php/ Overall seems like a better implementation than a raw glob() setup... will look further into and see how things work with this setup.