Use case for output buffering as the correct solution to “headers already sent”

前端 未结 5 576
无人及你
无人及你 2020-12-11 17:10

I see (not just on this site) a lot of question from inexperienced PHP programmers about the infamous \"headers already sent... output started at\" error, and many people su

5条回答
  •  旧时难觅i
    2020-12-11 18:05

    for template systems you will need ob_start ... look and Zend_View

    Later Edit I misunderstood the question and provided a case where ob_start use is a valid solution.

提交回复
热议问题