欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

PHP Zip解壓 文件在線解壓縮的函數(shù)代碼

 更新時間:2010年05月26日 00:34:37   作者:  
PHP在線解壓縮Zip 文件函數(shù)代碼,需要在線zip解壓的朋友可以參考下。
復(fù)制代碼 代碼如下:

/**********************
*@file - path to zip file
*@destination - destination directory for unzipped files
*/
function unzip_file($file, $destination){
// create object
$zip = new ZipArchive() ;
// open archive
if ($zip->open($file) !== TRUE) {
die ('Could not open archive');
}
// extract contents to destination directory
$zip->extractTo($destination);
// close archive
$zip->close();
echo 'Archive extracted to directory';
}

PHP Zip壓縮 在線對文件進(jìn)行壓縮的函數(shù)

相關(guān)文章

最新評論