且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

PHPExcel警告:ZipArchive :: getFromName():中的无效或单元化的Zip对象

更新时间:2023-02-22 18:12:38

我有相同的错误,这是由于权限不当造成的.尝试做一个简单的fopen(),以确保100%可以从给定目录读取该文件.另外,如果文件与脚本位于同一目录中,请确保可以成功读取该文件,以使您知道该文件本身是可以的.

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.