php man page for nsapi_request_headers

Query: nsapi_request_headers

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

NSAPI_REQUEST_HEADERS(3)						 1						  NSAPI_REQUEST_HEADERS(3)

nsapi_request_headers - Fetch all HTTP request headers

SYNOPSIS
array nsapi_request_headers (void )
DESCRIPTION
nsapi_request_headers(3) gets all the HTTP headers in the current request. This is only supported when PHP runs as a NSAPI module. Note Prior to PHP 4.3.3, getallheaders(3) was only available for the Apache servers. After PHP 4.3.3, getallheaders(3) is an alias for nsapi_request_headers(3) if you use the NSAPI module. Note You can also get at the value of the common CGI variables by reading them from the $_SERVER superglobal, which works whether or not you are using PHP as a NSAPI module.
RETURN VALUES
Returns an associative array with all the HTTP headers.
EXAMPLES
Example #1 nsapi_request_headers(3) example <?php $headers = nsapi_request_headers(); foreach ($headers as $header => $value) { echo "$header: $value <br /> "; } ?> PHP Documentation Group NSAPI_REQUEST_HEADERS(3)
Related Man Pages
get_headers(3) - php
virtual(3) - php
apache_lookup_uri(3) - php
header_remove(3) - php
headers_sent(3) - php
Similar Topics in the Unix Linux Community
PHP,Apache on AIX machine
march for my CPU
Merging File with headers
PHP script that detects if auth is required or not on Apache Splunk
Saturday May 4th the Forums Will Briefly Break Testing PHP 5.6 to PHP 7.0