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 合并指标
 (平均合并 99天 23小时) (30 天内合并 90 个 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.

贡献者指南