Solution to PHPExcel export reporting 500 error in Linux environment

高洛峰
Release: 2023-03-05 11:04:01
Original
2036 people have browsed it

Originally, I exported it to XLSX format and used

$objWriter = IOFactory::createWriter($objPHPExcel, 'Excel2007');
Copy after login

to report errors. The problem is that it is fine in the development environment and test environment, but it will directly cause a 500 error in the production environment.

Later I changed to export XLS format,

$objWriter = IOFactory::createWriter($objPHPExcel, 'Excel5');
Copy after login

The problem was solved, I will study the specific reason when I have time! ! !

The above-mentioned solution to the 500 error when exporting PHPExcel in the Linux environment is all the content shared by the editor. I hope it can give you a reference, and I hope you will support the PHP Chinese website.

For more related articles on how to solve the 500 error reported by PHPExcel when exporting in the Linux environment, please pay attention to the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!