PHPExcel Warning: ZipArchive::getFromName(): Invalid or unitialized Zip object in

浪子不回头ぞ 提交于 2020-01-11 07:18:32

问题


I'am trying to read xlsx file, but I get this error:

Warning: ZipArchive::getFromName(): Invalid or unitialized Zip object in E:\wamp\www\test\Classes\PHPExcel\Reader\Excel2007.php on line 323

what this error mean?


回答1:


I had the same error and it was due to improper permissions. Try doing a simple fopen() to make 100% sure you can read that file from the given directory. Also, make sure you can read that file successfully if it's in the same directory as your script so you know the file itself is okay.



来源:https://stackoverflow.com/questions/20302772/phpexcel-warning-ziparchivegetfromname-invalid-or-unitialized-zip-object-i

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!