Home > Backend Development > PHP Tutorial > PHPEXCEL问题

PHPEXCEL问题

WBOY
Release: 2016-06-23 13:38:47
Original
1025 people have browsed it

phpexcel导出excel,如果图片损坏或无法读取就无法导出。
Fatal error: Uncaught exception 'PHPExcel_Exception' with message 'File F:/www/uploads/140923/1-14092311304N59.jpg not found!'

有没什么办法可以跳过这个错误?


回复讨论(解决方案)

试试看把错误提示关闭
display_errors = Off 

你这只是屏蔽了错误信息,遇到错误还是没办法继续执行。
已经搞定了,先判断下图片是否损坏就行了

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template