PHPExcel警告:ZipArchive :: getFromName():中的无效或单元化的Zip对象 [英] PHPExcel Warning: ZipArchive::getFromName(): Invalid or unitialized Zip object in

查看:1006
本文介绍了PHPExcel警告:ZipArchive :: getFromName():中的无效或单元化的Zip对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试读取xlsx文件,但出现此错误:

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

此错误是什么意思?

推荐答案

我有相同的错误,这是由于权限不当造成的.尝试做一个简单的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.

这篇关于PHPExcel警告:ZipArchive :: getFromName():中的无效或单元化的Zip对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆