This is an archival post from my newsletter. Join the newsletter to get in the loop.

PHP Scandir Function

I hadn’t noticed

                    <a href="http://us2.php.net/manual/en/function.scandir.php">this new addition</a> to PHP 5. Finally a nice simple way to get a listing of the directories and files within a directory. Of course it wasn't that hard before but it's one less little function that needs to be added to your code. Of course since it's only PHP 5 it's not going to be much use to me in my current project which needs to be 4/5 :-(

Join my mailing list

Join my mailing list and get a copy of my ebook, Securing the Five Figure Sale, for free. Instantly.