Advertisemen
Let's say you have folder like this in your server.
>> Uploads
>> Images
>> img1.png
>> img2.png
>> img3.png
in other way Uploads / Images / img1.png........
You can send a command like this rmdir(directory) but this works only if the folder doesn't have anything inside. So what to do?
First we have to unlink every thing inside that directory, like this
array_map("unlink", glob("Uploads"."*.*"));
Then call
rmdir("Uploads");
This should do the magic.
Thanks.....
Advertisemen
Tidak ada komentar:
Posting Komentar