An error occurred while importing the excel file using thinkphp-php Tutorial

Source: Internet
Author: User
The error occurred when importing the excel file in thinkphp. I used the wamp integrated environment and didn't configure it. my import code is correct. the file will be uploaded to the specified folder, but it will be imported.

An error occurs during import, and the extension = php_zip.dll is removed.


The following error occurs, so it is annoying to see if the phph configuration is incorrect or if you want to ask the heroes for help. The error code is as follows:

Exception 'exception' with message' ZipArchive library is not

Enabled 'in D: \ wamp \ www \ Moca \ App \ Lib \ ORG \ extend \ PHPExc \ Read \ Excel2007.class. php: 240

Stack trace:
#0 D: \ wamp \ www \ Moca \ App \ Lib \ Action \ ProductAction. class. php (216): PHPExcel_Reader_Excel2007-> canRead ('. /uploads/produ... ')
#1 [internal function]: ProductAction-> showProduct ()
#2 D: \ wamp \ www \ Moca \ ThinkPHP \ Lib \ Core \ App. class. php (132): call_user_func (Array)
#3 D: \ wamp \ www \ Moca \ ThinkPHP \ Lib \ Core \ App. class. php (159): App: exec ()
#4 D: \ wamp \ www \ Moca \ ThinkPHP \ Lib \ Core \ Think. class. php (47): App: run ()
#5 D: \ wamp \ www \ Moca \ ThinkPHP \ Common \ runtime. php (237): Think: Start ()
#6 D: \ wamp \ www \ Moca \ ThinkPHP. php (32): require ('d: \ wamp \ ww ...')
#7 D: \ wamp \ www \ Moca \ index. php (7): require ('d: \ wamp \ ww ...')


Reply to discussion (solution)

What is your php version?

My Integrated 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.