Monday, October 31, 2016

Unzip Archive in php

Tags



Alright so you already archive or zip your big files. Then you wonder how to unzip it?Using same php library ZIP ARCHIVE, you can unzip it. How difficulty is it? It simple like eating a cake.

Below is the source code:



'ppap.zip' is the destination and files name. Change it according to path that you want.

ex. C:/Users/Ben/Desktop/ppap.zip

$zip->extractTo('path/to/output');

If you think that this tutorial help you, please share it around! thanks!


EmoticonEmoticon