PHP funkce headers_sent()

Dostupnost ve verzích: PHP 4.0

Checks if or where headers have been sent

Parametry

Parametr Datový typ Výchozí hodnota Poznámka
$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.

Další zdroje

Oficiální dokumentace funkce headers-sent

AI konzultace & implementace

Pomohu vám zavést AI do vašeho projektu– od analýzy a návrhu řešení až po nasazení do produkce. Ušetřete čas, zjednodušte procesy a získejte konkurenční výhodu.

Domluvit konzultaci
Konzultant: Jan Barášek
Potřebujete poradit s PHP?

Nabízím trénink vývojářů, konzultace, školení a analýzu návrhových vzorů. Osobně v Praze nebo online.

Napište mi

Newsletter

Nejlepsi tipy a triky o PHP do Vaseho e-mailu. Clanky a novinky nejen ze sveta PHP a programovani.