This Writer->save error can be caused by a number of reasons, some of which are caused by errors in the header and buffer
This part of the specific discussion can be seen here http://stackoverflow.com/questions/8566196/phpexcel-to-download
However, there is a problem that is not easy to find, in the high version of PHP7, err_invalid_response errors may also be caused by the following reasons
1 |
FatalError: ' Break ' Not Inch the ' Loop ' or ' switch ' context in <mypath>\< Span class= "crayon-v" >phpexcel\phpexcel\ calculation\functions php on line 581 |
Please open the phpexcel\calculation\functions.php file and delete the break of 581 lines
Reference reference: https://github.com/PHPOffice/PHPExcel/issues/716
Reproduced in http://blog.csdn.net/tiansan/article/details/74389122
Phpexcel in high version PHP7, writer->save a workaround for err_invalid_response errors