php7+ Export using PHPExcel does not work properly: "Cannot access website" is displayed

After changing from PHP5+ to PHP7+, PHPExcel export will report "Cannot visit website"

Use the PHPExcel_Writer_Excel5 method in PHPExcel, it will report "Cannot access the website"

Solution:

1. Call ob_end_clean() before calling save("php://output")

2. In the PHPExcel\Calculation\Functions.php file, delete the break on line 581 (or comment out)

If you still can't solve it after trying, you can use the following solutions

1. Modify PHPExcel_Writer_Excel5 to PHPExcel_Writer_Excel2007 to run successfully

2. Modify Shared/OLE.php in PHPExcel and modify continue to continue 2; then you can use PHPExcel_Writer_Excel5

Guess you like

Origin blog.csdn.net/weixin_45557228/article/details/112782720