How do you delete a directory?
I have always used unlink() to delete files, and just the other day tried to delete a directory with it. This is what I put:
unlink("./folder/");
Is there a reason that doesnt work? Do I need an extra parameter if it is for a directory?
Thanks in advance!
I have always used unlink() to delete files, and just the other day tried to delete a directory with it. This is what I put:
unlink("./folder/");
Is there a reason that doesnt work? Do I need an extra parameter if it is for a directory?
Thanks in advance!
Comment