Name
header
Synopsis
void header(stringheader
[, boolreplace
])
Sends header
as a raw HTTP header
string; must be called before any output is generated (including
blank lines, a common mistake). If the header is a Location header,
PHP also generates the appropriate REDIRECT
status code. If
replace
is specified and false
, the header does not replace a
header of the same name; otherwise, the header replaces any header
of the same name.
Get Programming PHP, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.