Availability in PHP 4.0
Checks if or where headers have been sent
| Parameter | Data type | Default value | Note | 
|---|---|---|---|
| $file | string | null, | If the optional file and line parameters are set, headers_sent will put the PHP source file name and line number where output started in the file and line variables. | 
| $line | int | null | The line number where the output started. | 
bool
headers_sent will return false if no HTTP headers
have already been sent or true otherwise.
Official headers-sent documentation
Jan Barášek Více o autorovi
Autor článku pracuje jako seniorní vývojář a software architekt v Praze. Navrhuje a spravuje velké webové aplikace, které znáte a používáte. Od roku 2009 nabral bohaté zkušenosti, které tímto webem předává dál.
Rád vám pomůžu:
Články a novinky nejen ze světa PHP a programování. Nenechte si ujít jediný článek.
Články píše Jan Barášek © 2009-2025 | Kontakt | Mapa webu
Status | Aktualizováno: ... | en