Heim > Backend-Entwicklung > PHP-Tutorial > 有关thinkphp导入excel文件 出错误问题

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Freigeben: 2016-06-23 14:06:46
Original
1252 Leute haben es durchsucht

我用的是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

Erklärung dieser Website
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn
Beliebte Tutorials
Mehr>
Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage