September 2001
Intermediate to advanced
768 pages
32h 45m
English
array getallheaders()
Gets the HTTP headers that the client sent.
Returns:
Associative array containing a list of HTTP headers, or FALSE on error
Description:
Call this function to retrieve an array of all HTTP headers sent by the client browser to the server. This function returns an associative array filled with the headers, in which each key is the name of the header, and each data element is the value associated with that name. If you have safe_mode enabled in PHP, the "authorization" header isn’t included in the result set.
Header names are not case-sensitive. A client may send "User-Agent: foo" or "user-agent: foo", or use any other combination of upper- and lowercase for the header name. However, the name of the key in ...
Read now
Unlock full access