Availability in PHP 5.0
Fetches all the headers sent by the server in response to a HTTP request
| Parameter | Data type | Default value | Note | 
|---|---|---|---|
$url | 
string | 
not | The target URL. | 
$format | 
int | 
null, | If the optional format parameter is set to non-zero, get_headers parses the response and sets the array's keys. | 
$context | 
resource | 
not | 
array
an indexed or associative array with the headers, or false on
failure.
Official get-headers 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