Migrate docs to the new structue, fix protos and remove useless PHP version information

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@178514 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Mehdi Achour 2005-01-30 00:46:43 +00:00
parent 21da834719
commit c3e414fda0
3 changed files with 79 additions and 36 deletions

View file

@ -1,22 +1,46 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.2 $ -->
<!-- $Revision: 1.3 $ -->
<refentry id="function.nsapi-request-headers">
<refnamediv>
<refname>nsapi_request_headers</refname>
<refpurpose>Fetch all HTTP request headers</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>array</type><methodname>nsapi_request_headers</methodname>
<void/>
</methodsynopsis>
<para>
<function>nsapi_request_headers</function> returns an associative
array of all the HTTP headers in the current request. This is only
supported when PHP runs as a <productname>NSAPI</productname>
module.
<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>
@ -33,20 +57,6 @@ foreach ($headers as $header => $value) {
</programlisting>
</example>
</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>
</refentry>

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.3 $ -->
<!-- $Revision: 1.4 $ -->
<refentry id="function.nsapi-response-headers">
<refnamediv>
<refname>nsapi_response_headers</refname>
@ -7,19 +7,29 @@
Fetch all HTTP response headers
</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>array</type><methodname>nsapi_response_headers</methodname>
<void/>
</methodsynopsis>
<para>
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.
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
See also <function>nsapi_request_headers</function> and
<function>headers_sent</function>.
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>

View file

@ -1,14 +1,14 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.8 $ -->
<!-- $Revision: 1.9 $ -->
<refentry id="function.nsapi-virtual">
<refnamediv>
<refname>nsapi_virtual</refname>
<refpurpose>Perform an NSAPI sub-request</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>int</type><methodname>nsapi_virtual</methodname>
<type>bool</type><methodname>nsapi_virtual</methodname>
<methodparam><type>string</type><parameter>uri</parameter></methodparam>
</methodsynopsis>
<para>
@ -33,13 +33,36 @@
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.
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>
<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