学习过程中遇到的一些问题收集:
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; 生效。