当前位置: 动力学知识库 > 问答 > 编程问答 >

php - PHPpdf header already sent error

问题描述:

This question already has an answer here:

  • How to fix “Headers already sent” error in PHP

    11 answers

网友答案:

The issue is you are echoing the result of the save operation. If that functions returns nothing, it will still echo something (producing output). This is obviously happening prior to you sending the header information, so try removing the echo statement and just $this->dom->save(...) on line 165.

分享给朋友:
您可能感兴趣的文章:
随机阅读: