diff --git a/reference/nsapi/functions/nsapi-request-headers.xml b/reference/nsapi/functions/nsapi-request-headers.xml index f1fe8ab243..ef52c1f5bf 100644 --- a/reference/nsapi/functions/nsapi-request-headers.xml +++ b/reference/nsapi/functions/nsapi-request-headers.xml @@ -1,22 +1,46 @@ - + nsapi_request_headers Fetch all HTTP request headers - - Description + + &reftitle.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. + nsapi_request_headers gets all the HTTP headers in + the current request. This is only supported when PHP runs as a + NSAPI module. + + + 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. + + + + + &reftitle.returnvalues; + + Returns an associative array with all the HTTP headers. + + + + &reftitle.examples; <function>nsapi_request_headers</function> example @@ -33,20 +57,6 @@ foreach ($headers as $header => $value) { - - - 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 index c1f9d63172..8451158453 100644 --- a/reference/nsapi/functions/nsapi-response-headers.xml +++ b/reference/nsapi/functions/nsapi-response-headers.xml @@ -1,5 +1,5 @@ - + nsapi_response_headers @@ -7,19 +7,29 @@ Fetch all HTTP response headers - - Description + + &reftitle.description; arraynsapi_response_headers - Returns an array of all NSAPI response headers. This functionality - is only available in PHP 4.3.3 and greater. + Gets all the NSAPI response headers. + + + &reftitle.returnvalues; - See also nsapi_request_headers and - headers_sent. + Returns an associative array with all the NSAPI response headers. + + + + &reftitle.seealso; + + + nsapi_request_headers + headers_sent + diff --git a/reference/nsapi/functions/nsapi-virtual.xml b/reference/nsapi/functions/nsapi-virtual.xml index d6c7bce052..71e4961a90 100644 --- a/reference/nsapi/functions/nsapi-virtual.xml +++ b/reference/nsapi/functions/nsapi-virtual.xml @@ -1,14 +1,14 @@ - + nsapi_virtual Perform an NSAPI sub-request - - Description + + &reftitle.description; - intnsapi_virtual + boolnsapi_virtual stringuri @@ -33,13 +33,36 @@ webservers. Use phpinfo to determine if it is available. In the Unix environment it should always work, in windows it depends on the name of a ns-httpdXX.dll file. - Read the note about subrequests in the NSAPI section - (UNIX, - Windows) - if you experience this problem. + + + Read the note about subrequests in the NSAPI section (UNIX, Windows) if you experience + this problem. + + &reftitle.parameters; + + + + uri + + + The URI of the script. + + + + + + + + &reftitle.returnvalues; + + &return.success; + +