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

Edit

Picture of Darren Hiles by Darren Hiles - 10 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.

+1

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 package can be used to pack and unpack files in ZIP archives.

There is a class that can retrieve the list of packed files as well several types of file details, such as the uncompressed size, last modification time, comments, etc..

The class can extract individual files, one at a time, specifying their file names, or extract all at once into a given directory.

There is another class that can pack files into new ZIP archives.

The classes use the usual PHP file access functions and gzip extension functions.
This recommendation solves the problem.
This recommendation does not solve the problem.

0

Picture of Manuel Lemos by Manuel Lemos Reputation 26695 - 10 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
: 
: