學習過程中遇到的一些問題收集:
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; 生效。