欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  php教程

PHPExcel的exception 'Exception' with message 'The filename is not recognised as an OLE file问题解决

程序员文章站 2022-05-02 08:22:57
...

PHPExcel的exception 'Exception' with message 'The filename is not recognised as an OLE file问题解决

php使用phpExcel解析excel文档的过程中出现 exception 'Exception' with message 'The filename ../phpernote.com/user.xls is not recognised as an OLE file' in D:\phpernote\apache\htdocs... 错误提示。

问题原因:

我直接使用Excel2007创建的excel文档,虽然也是xls类型文档,但貌似格式不兼容,即使将xlsx改成xls,也同样会报上述错误。

解决办法:

使用Excel2007创建文档后,然后另存为2003的。

您可能感兴趣的文章

  • php提示Maximum execution time of 30 seconds exceeded...错误的解决办法
  • 网页缓存控制 Cache-control 常见的取值有private、no-cache、max-age、must-revalidate 介绍
  • select into from 提示 Undeclared variable.....错误的解决办法
  • php提示PHP Warning: date(): It is not safe to rely on the......错误的解决办法
  • select into from 和 insert into select 的区别和用法
  • phpMyAdmin Cannot start session without errors错误解决办法
  • php利用session_set_save_handler()函数将session保存到MySQL数据库中
  • 发送邮件SMTP Error Could not connect to SMTP host. send fail的解决办法