PHP Delete Directory and Files In Directory

In PHP if you want to delete a directory there is security against deleting a directory which has files in it. Therefore you need to delete all the files in the folder before you can delete the direct...