2019独角兽企业重金招聘Python工程师标准>>>
/*** 解压zip* @param type $file* @param type $destination* @return boolean*/public function unzip_file($file, $destination){ $zip = new ZipArchive() ; if ($zip->open($file) !== TRUE) {return $this->error('Could not open archive,PHP ZipArchive must support and compressed without damage'); } $zip->extractTo($destination); $zip->close();return TRUE;}