is there anyway to use either of those two functions or another one, to
a) remove all files within a specificed folder
b) then remove that folder
is it also possible to create a generic function to do this, as what I would like to do is simply, enter the name of the relevant folder into a text box, press submit and have php do the rest. This also means it will remove any files in the specified folder, (be they php, jpg, gif)
any ideas on how to go about this?