I’ve a ZIP file (skins.zip) having the following structure:
yellow
|_resources
|_theme
|_codes
I need to delete folder called theme/ inside the skins.zip. I’ve tried the following code but didn’t worked.
$zip = new ZipArchive;
if ($zip->open('skins.zip') === TRUE) {
$zip->deleteName('yellow/theme/');
$zip->close();
}
Can anyone help me, please?
I’ve just the following code and left the
print_routput for you to understand what’s going on:It outputs something like this: