���� JFIF �� � ( %"1"%)+...383,7(-.-
![]() Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20 System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64 User : apache ( 48) PHP Version : 7.4.20 Disable Function : NONE Directory : /var/www/html/img.123vid.top/vendor/phpoffice/common/src/Common/Adapter/Zip/ |
<?php namespace PhpOffice\Common\Adapter\Zip; use PclZip; class PclZipAdapter implements ZipInterface { /** * @var PclZip */ protected $oPclZip; /** * @var string */ protected $tmpDir; public function open($filename) { $this->oPclZip = new PclZip($filename); $this->tmpDir = sys_get_temp_dir(); return $this; } public function close() { return $this; } public function addFromString($localname, $contents) { $pathData = pathinfo($localname); $hFile = fopen($this->tmpDir.'/'.$pathData['basename'], "wb"); fwrite($hFile, $contents); fclose($hFile); $res = $this->oPclZip->add($this->tmpDir.'/'.$pathData['basename'], PCLZIP_OPT_REMOVE_PATH, $this->tmpDir, PCLZIP_OPT_ADD_PATH, $pathData['dirname']); if ($res == 0) { throw new \Exception("Error zipping files : " . $this->oPclZip->errorInfo(true)); } unlink($this->tmpDir.'/'.$pathData['basename']); return $this; } }