I need to delete directories that still have files or sub directories in it.
I've search through previous posts, but all have failed.
Can anyone write me a reliable code that can delete a non-empty directory and report a value
eg.
if ($unlink == "true") {
echo("directory empty");
} else {
echo("remove directory failed");
}