From ba9bc683593ed5aef474d27fef08c721cb75f8e7 Mon Sep 17 00:00:00 2001 From: Uwe Schindler Date: Mon, 14 Jul 2003 20:51:05 +0000 Subject: [PATCH] new functions in NSAPI git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@135070 c90b9560-bf6c-de11-be94-00142212c4b1 --- .../nsapi/functions/nsapi-request-headers.xml | 73 +++++++++++++++++++ .../functions/nsapi-response-headers.xml | 47 ++++++++++++ reference/nsapi/ini.xml | 4 +- reference/nsapi/reference.xml | 4 +- 4 files changed, 124 insertions(+), 4 deletions(-) create mode 100644 reference/nsapi/functions/nsapi-request-headers.xml create mode 100644 reference/nsapi/functions/nsapi-response-headers.xml diff --git a/reference/nsapi/functions/nsapi-request-headers.xml b/reference/nsapi/functions/nsapi-request-headers.xml new file mode 100644 index 0000000000..a52b3375f6 --- /dev/null +++ b/reference/nsapi/functions/nsapi-request-headers.xml @@ -0,0 +1,73 @@ + + + + + + nsapi_request_headers + Fetch all HTTP request headers + + + Description + + arraynsapi_request_headers + + + + nsapi_request_headers returns an associative + array of all the HTTP headers in the current request. This is only + supported when PHP runs as a NSAPI + module. + + + + <function>nsapi_request_headers</function> example + + $value) { + echo "$header: $value
\n"; +} +?> +]]> +
+
+
+ + + Prior to PHP 4.3.3, getallheaders was only available for the Apache servers. After PHP 4.3.3, + getallheaders is an alias for + nsapi_request_headers if you use the NSAPI module. + + + + + 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. + + +
+
+ + diff --git a/reference/nsapi/functions/nsapi-response-headers.xml b/reference/nsapi/functions/nsapi-response-headers.xml new file mode 100644 index 0000000000..36d0c26cd6 --- /dev/null +++ b/reference/nsapi/functions/nsapi-response-headers.xml @@ -0,0 +1,47 @@ + + + + + + nsapi_response_headers + + Fetch all HTTP response headers + + + + Description + + arraynsapi_response_headers + + + + Returns an array of all NSAPI response headers. This functionality + is only available in PHP version 4.3.3 and greater. + + + See also getallheaders and + headers_sent. + + + + + diff --git a/reference/nsapi/ini.xml b/reference/nsapi/ini.xml index f4d26fe294..3938d05aa8 100644 --- a/reference/nsapi/ini.xml +++ b/reference/nsapi/ini.xml @@ -1,11 +1,11 @@ - +
&reftitle.runtime; The behaviour of the NSAPI PHP module is affected by settings in &php.ini;. Configuration settings from &php.ini; may be overridden by additional parameters - to the php4_execute call in obj.conf + to the php4_execute call in obj.conf diff --git a/reference/nsapi/reference.xml b/reference/nsapi/reference.xml index 292c04e3ad..ee03a43db4 100644 --- a/reference/nsapi/reference.xml +++ b/reference/nsapi/reference.xml @@ -1,5 +1,5 @@ - + NSAPI-specific Functions NSAPI @@ -7,7 +7,7 @@
&reftitle.intro; - These functions are only available when running PHP as an NSAPI module in Netscape/iPlanet/SunONE webservers. + These functions are only available when running PHP as a NSAPI module in Netscape/iPlanet/SunONE webservers.