摘要:一使用内部扩展实现(>=php5)①解压缩文件functionunzip_file($file,$destination){//createobject$zip=newZipArchive();//openarchiveif($zip->open($file)!==TRUE){die('Couldnotopenarchive');}//extractcontentstodestinationdirectory$zip->extractTo($destination);//closearchive$zip->close();echo'Archive
阅读全文