Web Programming

Only members of this group can post notes and use other group resources. Join now to get access to all group resources!
Log in or register to join this group

PHP Deleting files from a folder  Viewed 54289 time(s), 2 post(s)., 1/10/2014 3:01:35 AM - by Khalid

Khalid 1/10/2014 3:01:35 AM

I am working on php code to delete all the files from a folder. How can I do that?

This content has not been rated yet. 
113 Reputation 7 Total posts
Raji 1/10/2014 8:40:14 PM

To delete all the files including sub-folder:
array_map('unlink', glob("path/temp/*"))

This content has not been rated yet. 
61 Reputation 12 Total posts