救急呀。大家有没有用过ZipArchive这个类,该怎么解决

WBOY
Release: 2016-06-13 10:09:24
Original
847 people have browsed it

救急呀。。。大家有没有用过ZipArchive这个类
我在本地测试,可以把文件压缩,可是程序上传到服务器就不能压缩,也不会提示错误。
各位大侠,帮帮忙。救急呀。。。

------解决方案--------------------
这样大家很难给你做判断的.最好有代码提供看看,另外服务器的环境是否和本地的一致?
------解决方案--------------------
1:服务器不显示错误,因为关闭了错误显示,打开方法-> php.ini->display_errors=ON,
如果服务器不显示Notice级错误,设置 error_reporting = E_ALL & ~E_NOTICE;

2:服务器不能正常压缩文件,查看一下服务器是否开启zip扩展,
如没有开启,那么ZipArchive中的方法是不会工作的.
查看方法:在服务器上建php文件,输出phpinfo();

PHP code
 <?php echo phpinfo(); ?><div class="clear">
                 
              
              
        
            </div>
Copy after login
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!