Jump to content
xisto Community
Sign in to follow this  
electriic ink

Help With Removing Files And Folders removing all files from a directory

Recommended Posts

Is there a function or a group of functions which I can use to delete all the files an folders in a directory? I've tried rmdir() but it complains that it can't remove it because there are files/folders in it.

Share this post


Link to post
Share on other sites

hey cmat go here it might help you out.

http://us3.php.net/function.unlink

and or

http://us3.php.net/manual/en/function.rmdir.php

both give some info on doing it if you have not already gone to this site.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.