类库下载地址:http://www.phpconcept.net/pclzip/pclzip-downloads
示例:
require_once('pclzip.lib.php');
$zipfile = 'testzip.zip'; //压缩包名称
$archive = new PclZip($zipfile);
$filelist = array('2.jpg','3.jpg','4.jpg','5.jpg','6.jpg'); //被压缩文件数组
$rs = $archive->create($filelist);
if(!$rs)
{
die('Error:'.$archive->errorInfo());
}