学习笔记:phpexcel 导出文件 打开时提醒:Excel found unreadable content in

学习过程中遇到的一些问题收集:

phpexcel 导出文件,

 打开excel文件时提醒:

"Excel found unreadable content in 'test.xlsx'. Do you want to recover the contents of this workbook? If you trust the source of this workbook, click Yes."


网上找的方法一般都是类似于:

Open the file in a text editor, and look to see if there are any white space characters at the beginning or end of the file, or any obvious error messages visible.

没有解决,最终解决的方法: 在php文件最后加上 exit;  生效。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章