سلام
این کلاسیه برای کار با فایلهای Zip احتمالا بدرد بخوره
مثال استفاده:
$zip = new clsTbsZip(); // instantiate the class
$zip->Open('archive1.zip'); // open an existing zip archive
$ok = $zip->FileExists('innerfolder/subfile1.txt'); // check if a sub-file exist in the archive
$txt = $zip->FileRead('subfile2.txt'); // retrieve the content of a sub-file
... // some work on the $txt contents
$zip->FileReplace('subfile2.txt', $txt, TBSZIP_STRING); // replace the existing sub-file
$zip->FileReplace('subfile3.txt', false); // delete the existing sub-file
$zip->FileAdd('subfile4.txt', $txt3, TBSZIP_STRING); // add a new sub-file
$zip->Flush(TBSZIP_FILE, 'archive1_new.zip'); // flush the modifications as a new archive
$zip->Close(); // close the current archive
دانلود:
[url]http://www.s1.softafzar.net/uploads/20140421-274-tbszip_2.16.zip[/url]