Skip to content
Advertisement

Delete a folder inside zip in php

I’ve a ZIP file (skins.zip) having the following structure:

JavaScript

I need to delete folder called theme/ inside the skins.zip. I’ve tried the following code but didn’t worked.

JavaScript

Can anyone help me, please?

Advertisement

Answer

I’ve just the following code and left the print_r output for you to understand what’s going on:

JavaScript

It outputs something like this:

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement