Home > Backend Development > PHP Tutorial > 生成zip文件,解压出现损坏异常

生成zip文件,解压出现损坏异常

WBOY
Release: 2016-06-13 13:41:06
Original
1319 people have browsed it

生成zip文件,解压出现损坏错误
我用压缩类将一些图片和xml文件压缩成一个zip的压缩文件, 但ftp下载的时候如果传输类型为 binary, zip文件打开正常,
如果为ascii ,zip解压出现损坏错误。
另外,用火狐、谷歌浏览器直接下载zip ,打开正常。 但用ie打开出现损坏错误

------解决方案--------------------
zip本来就是binary

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