大神们 小弟来跪求解答
1、在php.ini文件中,将extension=php_zip.dll前面的分号“;”去除;
(如果没有,请添加extension=php_zip.dll此行并确保php_zip.dll文件存在相应的目录)
然后同样在php.ini文件中,将 zlib.output_compression = Off 改为 zlib.output_compression = On
这些都ok的 ,就是会有下面那个报错 ,不知道原因 求解决 ,php代码是对的 ,是否是我哪里配置不对,求大神解答
系统发生错误
错误位置: FILE: D:\wamp\wamp\www\Moca\ThinkPHP\Lib\Core\Think.class.php LINE: 242
[ 错误信息 ]
[ TRACE ]
[13-04-25 15:38:04] D:\wamp\wamp\www\Moca\ThinkPHP\Lib\Core\Think.class.php (242) halt(exception 'Exception' with message 'ZipArchive library is not enabled' in D:\wamp\wamp\www\Moca\App\Lib\ORG\extend\PHPExcel\Reader\Excel2007.class.php:240
Stack trace:
#0 D:\wamp\wamp\www\Moca\App\Lib\Action\ProductAction.class.php(216): PHPExcel_Reader_Excel2007->canRead('./uploads/produ...')
#1 [internal function]: ProductAction->showProduct()
#2 D:\wamp\wamp\www\Moca\ThinkPHP\Lib\Core\App.class.php(132): call_user_func(Array)
#3 D:\wamp\wamp\www\Moca\ThinkPHP\Lib\Core\App.class.php(159): App::exec()
#4 D:\wamp\wamp\www\Moca\ThinkPHP\Lib\Core\Think.class.php(47): App::run()
#5 D:\wamp\wamp\www\Moca\ThinkPHP\Common\runtime.php(237): Think::Start()
#6 D:\wamp\wamp\www\Moca\ThinkPHP\ThinkPHP.php(32): require('D:\wamp\wamp\ww...')
#7 D:\wamp\wamp\www\Moca\index.php(7): require('D:\wamp\wamp\ww...')
#8 {main})
[13-04-25 15:38:04] () Think::appException(exception 'Exception' with message 'ZipArchive library is not enabled' in D:\wamp\wamp\www\Moca\App\Lib\ORG\extend\PHPExcel\Reader\Excel2007.class.php:240
Stack trace:
#0 D:\wamp\wamp\www\Moca\App\Lib\Action\ProductAction.class.php(216): PHPExcel_Reader_Excel2007->canRead('./uploads/produ...')
#1 [internal function]: ProductAction->showProduct()
#2 D:\wamp\wamp\www\Moca\ThinkPHP\Lib\Core\App.class.php(132): call_user_func(Array)
#3 D:\wamp\wamp\www\Moca\ThinkPHP\Lib\Core\App.class.php(159): App::exec()
#4 D:\wamp\wamp\www\Moca\ThinkPHP\Lib\Core\Think.class.php(47): App::run()
#5 D:\wamp\wamp\www\Moca\ThinkPHP\Common\runtime.php(237): Think::Start()
#6 D:\wamp\wamp\www\Moca\ThinkPHP\ThinkPHP.php(32): require('D:\wamp\wamp\ww...')
#7 D:\wamp\wamp\www\Moca\index.php(7): require('D:\wamp\wamp\ww...')
#8 {main})
回复讨论(解决方案)
msg:
ZipArchive library is not enabled
Pls check:
localhost/phpinfo.php 中zip真的开启了吗?
如果没有,再重启一个apache,并检查apache error日志有报错。
http://us3.php.net/manual/en/zip.installation.php
不是很明白啊 windows下面开启那个zip不是只要在phpini里面加个php_zip.dll就行了么
我擦 老大 你吧报错的源码发出来做什么啊 反而懒得看你报错信息啊
推荐阅读
-
关于最近(2016年)新微信文档开发的问题,跪求CSDN版本里面的大神们来看看
-
关于最近(2016年)新微信文档开发的问题,跪求CSDN版本里面的大神们来看看
-
神奇的没见过的技术大神们来围观啊mysql一次自动插入2条数据,求解。解决方案
-
大神们 小弟我想让PHP 延迟10秒后跳转可以实现嘛
-
大神们 棒棒小弟解决方法
-
大神们 棒棒小弟解决方法
-
各位大神们,帮小弟我瞅瞅这是怎么回事
-
神奇的没见过的技术大神们来围观啊mysql一次自动插入2条数据,求解。解决方案
-
mysql-菜鸟跪求大神解答,myqsl存储过程在什么位置编写啊···写在哪里啊··跪求,在线跪等
-
utf-8-跪求各位大神解答!!ubuntu下mysql编码改为utf8之后中文还是乱码