php 解压缩zip?该如何处理

WBOY
Release: 2016-06-13 11:59:10
Original
1078 people have browsed it

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!