About thinkphp importing Excel file Error issues

Source: Internet
Author: User
Tags stack trace
I use the WAMP integration environment is not how to configure, my import code is right, the file will be uploaded to the specified folder, but the guide

In the time of the error, and then my extension=php_zip.dll in front of, but in the import will be


The following error, so annoying Oh, is not PHPH configuration which place is wrong or ask the heroes to help. The error code is as follows

Exception ' exception ' with message ' ziparchive Library was 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: 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 (+): App::run ()
#5 D:\wamp\wamp\www\Moca\ThinkPHP\Common\runtime.php (237): Think::start ()
#6 D:\wamp\wamp\www\Moca\ThinkPHP\ThinkPHP.php (+): Require (' D:\wamp\wamp\ww ... ')
#7 D:\wamp\wamp\www\Moca\index.php (7): Require (' D:\wamp\wamp\ww ... ')


Reply to discussion (solution)

What is your PHP version?

My integration environment is Wamp 2.0 PHP is 5.2.6

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.