PDA

View Full Version : PHP Class for Extracting ZIP Files...


akanevsky
04-07-2007, 09:17 PM
Can anyone suggest a good php class for extracting zip files that have been uploaded to the server? Thanks.

Logikos
04-07-2007, 11:12 PM
This look pretty promising:

http://www.phpclasses.org/browse/package/945.html
Allows the creation of tar, gzip, bzip2, and zip archives, and the extraction of tar, gzip, and bzip2. Supports relative paths/no paths, comments, and recursing through subdirectories. Can write file to disk, allow user to download directly, or return file contents in a string or an array. Does not require any external programs to run. PHP must be compiled with '--with-zlib' for gzip and zip and '--with-bzip2' for bzip2. Supports creation of self-extracting zip archives. See readme for full details.

calorie
04-07-2007, 11:29 PM
<a href="http://www.phpconcept.net/pclzip/index.en.php" target="_blank">http://www.phpconcept.net/pclzip/index.en.php</a>

akanevsky
04-08-2007, 01:32 AM
Thanks everyone. I suppoce pclzip is more trustworthy? Did you ever use it, calorie?

CyberAlien
04-08-2007, 07:31 AM
I'm using a modification of pclzip for one of my scripts. Works very well.

akanevsky
04-17-2007, 09:49 PM
Thanks, then that's what I will use. :)