NSAPI_REQUEST_HEADERS(3) 1 NSAPI_REQUEST_HEADERS(3)nsapi_request_headers - Fetch all HTTP request headersSYNOPSIS
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)
Hi,
I've got a problem with awk.
On a solaris box:
SunOS 5.8 Generic_108528-23 sun4u sparc SUNW,Sun-Fire-280R,
I am running the follow awk script:
# awk -f jawk ntest.dat
awk: too many output files 10
record number 11
#
Where jawk is:
#!/usr/bin/ksh
{ (4 Replies)
Hi,
I have this piece of shell script:
#!/bin/ksh
x=data1
x=data1
x=data1
for i in 1 2 3
do
cp x $IN_DIR
done
PerformNextTask
$IN_DIR is already designed to automatically pick up x and send x to other directory $OK_DIR. $IN_DIR will be empty once all x goes to $OK_DIR.... (2 Replies)
Does anyone know for sure how to tell whether the RHEL 3 / 4 / 5 server you're logged into is real or VMware, other than rpm -qa | grep -i vm?
And if the server is real, is there any way to tell from the OS level what kind of hardware you're on? I guess I'm looking for something analogous to... (2 Replies)
I am having hard time understanding what this really do to the environment? I do understand this part "tty -s && stty " but not "istrip"
# stty command is executed only if a tty is attached to the process.
# stty istrip : Strip input characters to 7 bits
tty -s && stty istrip
I am... (3 Replies)
I have a 12 core linux cpu but the load is really high on this box, hovering around 50. What configuration changes do we need to make so that system have no bottleneck. (13 Replies)