0
有沒有辦法使用Zend_Filter_Compress類在一個zip壓縮文件中壓縮多個文件?使用Zend Filter Compress壓縮多個文件
官方文檔只談論一個文件或一個文件夾。
將數組用作調用方法的參數不起作用,因爲存檔僅包含數組中的最後一個文件。
$filter = new Zend_Filter_Compress(array(
'adapter' => 'Zip',
'options' => array(
'archive' => 'test.zip'
),
));
$b=array('C:\temp\compress1.txt','C:\temp\compress2.txt');
$compressed = $filter->filter($b);
好吧,我是因爲缺少文檔不知道。然後,我將使用這個類。 – Mick