php/doc-en

Note on page for header() needs clarification.

開放

#2,680 建立於 2023年8月13日

 (0 則留言) (0 個反應) (0 位負責人)XML (882 個分叉)auto 404
Extension: standardQAStatus: Verifiedgood first issue

倉庫指標

星標
 (596 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

On the manual page for header(), in the Notes section, the second note starts "You can use output buffering to get around this problem, ...".

What is "this problem"? The Wayback machine says it it refers to the paragraph right back up in the Description section about headers having to be sent before output is generated (the note was relocated during a redesign of the manual in 2007 without being edited).

Also, calling it a "problem" might be inaccurate. If it becomes a problem, then there are measures you can take to work around it, but by itself it's just an assertion that headers must precede the body.

貢獻者指南