Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

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

Warning: ZipArchive::getFromName(): Invalid or unitialized Zip object in E:wampwwwestClassesPHPExcelReaderExcel2007.php on line 323

what this error mean?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
1.6k views
Welcome To Ask or Share your Answers For Others

1 Answer

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...