php/doc-en

Note on page for header() needs clarification.

Ouverte

#2 680 ouverte le 13 août 2023

 (0 commentaire) (0 réaction) (0 personne assignée)XML (882 forks)auto 404
Extension: standardQAStatus: Verifiedgood first issue

Métriques du dépôt

Stars
 (596 étoiles)
Métriques de merge PR
 (Merge moyen 99j 23h) (90 PRs mergées en 30 j)

Description

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.

Guide contributeur