Query: getallheaders
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
GETALLHEADERS(3) 1 GETALLHEADERS(3) getallheaders - Fetch all HTTP request headersSYNOPSISarray getallheaders (void )DESCRIPTIONFetches all HTTP headers from the current request. This function is an alias for apache_request_headers(3). Please read the apache_request_headers(3) documentation for more information on how this function works.RETURN VALUESAn associative array of all the HTTP headers in the current request, or FALSE on failure.CHANGELOG+--------+---------------------------------------------------+ |Version | | | | | | | Description | | | | +--------+---------------------------------------------------+ | 5.5.7 | | | | | | | This function became available in the CLI | | | server. | | | | | 5.4.0 | | | | | | | This function became available under FastCGI. | | | Previously, it was supported when PHP was | | | installed as an Apache module or by the NSAPI | | | server module in Netscape/iPlanet/SunONE web- | | | servers. | | | | +--------+---------------------------------------------------+EXAMPLESExample #1 getallheaders(3) example <?php foreach (getallheaders() as $name => $value) { echo "$name: $value "; } ?>SEE ALSOapache_response_headers(3). PHP Documentation Group GETALLHEADERS(3)
| Related Man Pages |
|---|
| apache_request_headers(3) - php |
| get_headers(3) - php |
| virtual(3) - php |
| apache_child_terminate(3) - php |
| getallheaders(3) - php |
| Similar Topics in the Unix Linux Community |
|---|
| astahttpd web server 0.1-beta1 (Default branch) |
| HTTP extension for PHP 1.6.1 (Default branch) |
| HTTP extension for PHP 1.6.3 (Default branch) |
| Apache + DSO PHP |
| Setting up Apache/mySQL/PHP in Jail |