Open the file given as follows
Add the following code in the header
1 ob_end_clean(); 2 header('Content-Type:application/vnd.ms-excel'); 3 header('Cache-Control: max-age=0');
as follows:
Reference: https://www.cnblogs.com/jthb/archive/2013/05/24/3097485.html
https://www.bobcoder.cc/index/post/detail/id/375.html