WS (start at col 0)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@178984 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Mehdi Achour 2005-02-06 03:18:55 +00:00
parent a2d449c586
commit e622e9ae31
3 changed files with 151 additions and 151 deletions

View file

@ -1,64 +1,64 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.3 $ -->
<refentry id="function.nsapi-request-headers">
<refnamediv>
<refname>nsapi_request_headers</refname>
<refpurpose>Fetch all HTTP request headers</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>array</type><methodname>nsapi_request_headers</methodname>
<void/>
</methodsynopsis>
<para>
<function>nsapi_request_headers</function> gets all the HTTP headers in
the current request. This is only supported when PHP runs as a
<productname>NSAPI</productname> module.
</para>
<note>
<para>
Prior to PHP 4.3.3, <function>getallheaders</function> was only
available for the Apache servers. After PHP 4.3.3,
<function>getallheaders</function> is an alias for
<function>nsapi_request_headers</function> if you use the NSAPI module.
</para>
</note>
<note>
<para>
You can also get at the value of the common CGI variables by
reading them from the <literal>$_SERVER</literal> superglobal, which
works whether or not you are using PHP as a
<productname>NSAPI</productname> module.
</para>
</note>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Returns an associative array with all the HTTP headers.
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title><function>nsapi_request_headers</function> example</title>
<programlisting role="php">
<!-- $Revision: 1.4 $ -->
<refentry id="function.nsapi-request-headers">
<refnamediv>
<refname>nsapi_request_headers</refname>
<refpurpose>Fetch all HTTP request headers</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>array</type><methodname>nsapi_request_headers</methodname>
<void/>
</methodsynopsis>
<para>
<function>nsapi_request_headers</function> gets all the HTTP headers in
the current request. This is only supported when PHP runs as a
<productname>NSAPI</productname> module.
</para>
<note>
<para>
Prior to PHP 4.3.3, <function>getallheaders</function> was only
available for the Apache servers. After PHP 4.3.3,
<function>getallheaders</function> is an alias for
<function>nsapi_request_headers</function> if you use the NSAPI module.
</para>
</note>
<note>
<para>
You can also get at the value of the common CGI variables by
reading them from the <literal>$_SERVER</literal> superglobal, which
works whether or not you are using PHP as a
<productname>NSAPI</productname> module.
</para>
</note>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Returns an associative array with all the HTTP headers.
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title><function>nsapi_request_headers</function> example</title>
<programlisting role="php">
<![CDATA[
<?php
$headers = nsapi_request_headers();
foreach ($headers as $header => $value) {
echo "$header: $value <br />\n";
echo "$header: $value <br />\n";
}
?>
]]>
</programlisting>
</example>
</para>
</refsect1>
</refentry>
</programlisting>
</example>
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:

View file

@ -1,38 +1,38 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.4 $ -->
<refentry id="function.nsapi-response-headers">
<refnamediv>
<refname>nsapi_response_headers</refname>
<refpurpose>
Fetch all HTTP response headers
</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>array</type><methodname>nsapi_response_headers</methodname>
<void/>
</methodsynopsis>
<para>
Gets all the NSAPI response headers.
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Returns an associative array with all the NSAPI response headers.
</para>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>nsapi_request_headers</function></member>
<member><function>headers_sent</function></member>
</simplelist>
</para>
</refsect1>
</refentry>
<!-- $Revision: 1.5 $ -->
<refentry id="function.nsapi-response-headers">
<refnamediv>
<refname>nsapi_response_headers</refname>
<refpurpose>
Fetch all HTTP response headers
</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>array</type><methodname>nsapi_response_headers</methodname>
<void/>
</methodsynopsis>
<para>
Gets all the NSAPI response headers.
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Returns an associative array with all the NSAPI response headers.
</para>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>nsapi_request_headers</function></member>
<member><function>headers_sent</function></member>
</simplelist>
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:

View file

@ -1,69 +1,69 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.9 $ -->
<refentry id="function.nsapi-virtual">
<refnamediv>
<refname>nsapi_virtual</refname>
<refpurpose>Perform an NSAPI sub-request</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>bool</type><methodname>nsapi_virtual</methodname>
<methodparam><type>string</type><parameter>uri</parameter></methodparam>
</methodsynopsis>
<para>
<function>nsapi_virtual</function> is an NSAPI-specific function which
is equivalent to &lt;!--#include virtual...--&gt; in SSI
(<filename>.shtml</filename> files). It does an NSAPI sub-request.
It is useful for including CGI scripts or .shtml files, or anything
else that you'd parse through webserver.
</para>
<para>
To run the sub-request, all buffers are terminated and flushed to the
browser, pending headers are sent too.
</para>
<para>
You cannot make recursive requests with this function to other PHP scripts.
If you want to include PHP scripts, use <function>include</function> or
<function>require</function>.
</para>
<note>
<para>
This function depends on a undocumented feature of the Netscape/iPlanet/SunONE
webservers. Use <function>phpinfo</function> to determine if it is available.
In the Unix environment it should always work, in windows it depends on the name of
a <filename>ns-httpdXX.dll</filename> file.
</para>
<para>
Read the note about subrequests in the NSAPI section (<link
linkend='install.unix.sun.notes'>UNIX</link>, <link
linkend='install.windows.sun.notes'>Windows</link>) if you experience
this problem.
</para>
</note>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>uri</parameter></term>
<listitem>
<para>
The URI of the script.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
&return.success;
</para>
</refsect1>
</refentry>
<!-- $Revision: 1.10 $ -->
<refentry id="function.nsapi-virtual">
<refnamediv>
<refname>nsapi_virtual</refname>
<refpurpose>Perform an NSAPI sub-request</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>bool</type><methodname>nsapi_virtual</methodname>
<methodparam><type>string</type><parameter>uri</parameter></methodparam>
</methodsynopsis>
<para>
<function>nsapi_virtual</function> is an NSAPI-specific function which
is equivalent to &lt;!--#include virtual...--&gt; in SSI
(<filename>.shtml</filename> files). It does an NSAPI sub-request.
It is useful for including CGI scripts or .shtml files, or anything
else that you'd parse through webserver.
</para>
<para>
To run the sub-request, all buffers are terminated and flushed to the
browser, pending headers are sent too.
</para>
<para>
You cannot make recursive requests with this function to other PHP scripts.
If you want to include PHP scripts, use <function>include</function> or
<function>require</function>.
</para>
<note>
<para>
This function depends on a undocumented feature of the Netscape/iPlanet/SunONE
webservers. Use <function>phpinfo</function> to determine if it is available.
In the Unix environment it should always work, in windows it depends on the name of
a <filename>ns-httpdXX.dll</filename> file.
</para>
<para>
Read the note about subrequests in the NSAPI section (<link
linkend='install.unix.sun.notes'>UNIX</link>, <link
linkend='install.windows.sun.notes'>Windows</link>) if you experience
this problem.
</para>
</note>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>uri</parameter></term>
<listitem>
<para>
The URI of the script.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
&return.success;
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables: