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