Home of web learners


PHP have library to work with zip

Lets look an example:


= new ZipArchive;




We have a zip file name roky.zip where two file included,one is a text file another word is a excel file,so by make a object named zob,then we use open method from there and assign our zip file name

Now next line we use extractTo method to extract all file included in zip with extract location,here we use same directory of zip file,so after run it,we got all file in directory of zip file extracted


About webn3rd