Home  >  Article  >  Backend Development  >  php 解压缩zip?该如何处理

php 解压缩zip?该如何处理

WBOY
WBOYOriginal
2016-06-13 11:59:101105browse

php 解压缩zip?
解压带密码的zip包,ZipArchive 看似不能解压带密码的压缩文件,
用exec调shell来实现?有开源类库或好的方法吗
------解决方案--------------------
用shell 实现较好。
exec("unzip -P 密码 -d 解压到 zip文件");
例:
exec("unzip -P 123456 -d /home/web/zip/ o.zip");

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