Home >Backend Development >PHP Tutorial >有关thinkphp导入excel文件 出错误问题

有关thinkphp导入excel文件 出错误问题

WBOY
WBOYOriginal
2016-06-23 14:06:461227browse

我用的是wamp集成环境也没怎么配置,我的导入代码是对的,文件会上传到指定文件夹,但是就是导

入的时候出错 ,然后我的extension=php_zip.dll前面的;去掉了,但是在导入的时候就是会


出现下面的错误,好烦哦 ,是不是phph配置哪个地方不对还是求大侠们帮助。出错代码如下

exception 'Exception' with message 'ZipArchive library is not 

enabled' in D:\wamp\wamp\www\Moca\App\Lib\ORG\extend\PHPExc\Read\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...')


回复讨论(解决方案)

你的 php 版本是多少?

我的集成环境是wamp 2.0 php是5.2.6

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
Previous article:复选框值Next article:大神们 小弟来跪求解答