UPDATES VIA   RSS  |  Email Get updates via feedburner Get updates via twitter
Home

Archive for June 16th, 2009

PHP: Get all files and folders from a directory (folder)

Posted on 16. Jun, 2009 by .

2

To get all files and folders from a directory (folder) I found scandir to be the perfect solution. scandir scans a directory and returns an array containing all files and directories under the parent directory we’re looking in. The code below will try to remove a directory, if the element is a directory or delete [...]

Continue Reading