Home  >  Article  >  Backend Development  >  PHP decompression file code implements PHP online decompression_PHP tutorial

PHP decompression file code implements PHP online decompression_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 10:37:26867browse

复制代码 代码如下:

$zip = zip_open("moooredale.zip");
  if ($zip) {
   while ($zip_entry = zip_read($zip)) {
   $fp = fopen(zip_entry_name($zip_entry), "w");
   if (zip_entry_open($zip, $zip_entry, "r")) {
   $buf = zip_entry_read($zip_entry, zip_entry_filesize($zip_entry));
   fwrite($fp,"$buf");
   zip_entry_close($zip_entry);
   fclose($fp);
 }
}
zip_close($zip);
}
?>

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/735246.htmlTechArticle复制代码 代码如下: ?php $zip = zip_open("moooredale.zip"); if ($zip) { while ($zip_entry = zip_read($zip)) { $fp = fopen(zip_entry_name($zip_entry), "w"); if (zip_entry_ope...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn