一聚教程网:一个值得你收藏的教程网站

最新下载

热门教程

php怎么解压zip压缩包内容到指定目录?

时间:2018-01-23 编辑:猪哥 来源:一聚教程网

本文给大家介绍了php解压zip压缩包内容到指定目录的代码,有需要的朋友可以参考一下。

目录结构:

test

test/index.php
test/test_zip.zip
test/test_zip

';
					}else {
						echo $file_name . '
';	
						$file_size = zip_entry_filesize($zip);
						$file = zip_entry_read($zip, $file_size);
						file_put_contents($save_path, $file);
						zip_entry_close($zip);
					}
					
				}
			}
		}
		zip_close($resource);
	}

热门栏目