1 ob_end_clean();//清空缓冲区并关闭输出缓冲(清除脏数据)。
2 header('Content-Type:application/vnd.ms-execel');
3 header('Content-Disposition:attachment;filename="monitor_export_case.xls"');
4 $objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel5');
5 $objWriter->save('php://output');

 ob是output buffering的意思 也就是程序输出缓存

相关文章:

  • 2022-01-02
  • 2021-07-04
  • 2021-09-11
  • 2021-11-14
  • 2022-12-23
  • 2022-12-23
  • 2021-07-26
猜你喜欢
  • 2021-11-19
  • 2021-10-31
  • 2021-12-23
  • 2022-12-23
  • 2022-02-21
  • 2021-12-12
  • 2022-02-02
相关资源
相似解决方案