PHP Classes

Extract files from zip file: I need to extract the files contained within a bespoke zip file

Recommend this page to a friend!
  All requests RSS feed  >  Extract files from zip file  >  Request new recommendation  >  A request is featured when there is no good recommended package on the site when it is posted. Featured requests  >  No recommendations No recommendations  

Extract files from zip file


Picture of Darren Hiles by Darren Hiles - 9 years ago (2014-11-18)

I need to extract the files contained within a bespoke zip file

This request is clear and relevant.
This request is not clear or is not relevant.


I would like to unzip files from a zip file with a bespoke file system inside. The files inside may be in a directory structure but not always. I need to files to be pulled out and saved to the server according to the structure in the file.

Ask clarification

1 Recommendation

dUnzip2: Pack and unpack files packed in ZIP archives

This recommendation solves the problem.
This recommendation does not solve the problem.


Picture of Manuel Lemos by Manuel Lemos Reputation 23625 - 9 years ago (2014-11-26) Comment

There are several oldie but goody classes that can extract files from a ZIP archive using pure PHP in case you cannot use the Zip Archive extension for some reason.

This one has nice examples and documentation.

Recommend package