28 require_once PHPEXCEL_ROOT .
'PHPExcel/Shared/PCLZip/pclzip.lib.php';
56 public function open($fileName)
60 $this->_zip =
new PclZip($fileName);
73 $filenameParts = pathinfo($localname);
75 $handle = fopen($this->_tempDir.
'/'.$filenameParts[
"basename"],
"wb");
79 $res = $this->_zip->add($this->_tempDir.
'/'.$filenameParts[
"basename"],
84 throw new Exception(
"Error zipping files : " . $this->_zip->errorInfo(
true));
87 unlink($this->_tempDir.
'/'.$filenameParts[
"basename"]);