mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Made a proper indentation here also.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@17315 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
d7e31ee10e
commit
61c2efae6e
1 changed files with 42 additions and 29 deletions
|
@ -5,7 +5,10 @@
|
|||
<refentry id="function.apache-lookup-uri">
|
||||
<refnamediv>
|
||||
<refname>apache_lookup_uri</refname>
|
||||
<refpurpose>Perform a partial request for the specified URI and return all info about it</refpurpose>
|
||||
<refpurpose>
|
||||
Perform a partial request for the specified URI and return all
|
||||
info about it
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
|
@ -18,7 +21,6 @@
|
|||
enough to obtain all the important information about the given
|
||||
resource and returns this information in a class. The properties
|
||||
of the returned class are:
|
||||
|
||||
<simplelist>
|
||||
<member>status</member>
|
||||
<member>the_request</member>
|
||||
|
@ -42,14 +44,16 @@
|
|||
<member>mtime</member>
|
||||
<member>request_time</member>
|
||||
</simplelist>
|
||||
</para>
|
||||
<note>
|
||||
<simpara>Note: apache_lookup_uri only works when PHP is installed as an Apache module
|
||||
</simpara>
|
||||
</note>
|
||||
</para>
|
||||
<note>
|
||||
<simpara>
|
||||
Note: apache_lookup_uri only works when PHP is installed as an
|
||||
Apache module
|
||||
</simpara>
|
||||
</note>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
|
||||
<refentry id="function.apache-note">
|
||||
<refnamediv>
|
||||
<refname>apache_note</refname>
|
||||
|
@ -60,7 +64,11 @@
|
|||
<funcsynopsis>
|
||||
<funcdef>string <function>apache_note</function></funcdef>
|
||||
<paramdef>string <parameter>note_name</parameter></paramdef>
|
||||
<paramdef>string <parameter><optional>note_value</optional></parameter></paramdef>
|
||||
<paramdef>string
|
||||
<parameter>
|
||||
<optional>note_value</optional>
|
||||
</parameter>
|
||||
</paramdef>
|
||||
</funcsynopsis>
|
||||
<para>
|
||||
<function>apache_note</function> is an Apache-specific function
|
||||
|
@ -70,7 +78,8 @@
|
|||
<literal>note_name</literal>. If called with two arguments, it
|
||||
sets the value of note <literal>note_name</literal> to
|
||||
<literal>note_value</literal> and returns the previous value of
|
||||
note <literal>note_name</literal>.</para>
|
||||
note <literal>note_name</literal>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
|
@ -86,32 +95,35 @@
|
|||
<void/>
|
||||
</funcsynopsis>
|
||||
<para>
|
||||
This function returns an associative array of all the HTTP headers in the
|
||||
current request.
|
||||
<note>
|
||||
<para>
|
||||
You can also get at the value of the common CGI variables by reading
|
||||
them from the environment, which works whether or not you are using
|
||||
PHP as an Apache module. Use <function>phpinfo</function> to see a
|
||||
list of all of the environment variables defined this way.
|
||||
</para>
|
||||
</note>
|
||||
This function returns an associative array of all the HTTP
|
||||
headers in the current request.
|
||||
<note>
|
||||
<para>
|
||||
You can also get at the value of the common CGI variables by
|
||||
reading them from the environment, which works whether or not
|
||||
you are using PHP as an Apache module. Use
|
||||
<function>phpinfo</function> to see a list of all of the
|
||||
environment variables defined this way.
|
||||
</para>
|
||||
</note>
|
||||
<example>
|
||||
<title>getallheaders() Example</title>
|
||||
<programlisting>
|
||||
<title><function>getallheaders</function> Example</title>
|
||||
<programlisting role="php">
|
||||
$headers = getallheaders();
|
||||
while (list($header, $value) = each($headers)) {
|
||||
echo "$header: $value<br>\n";
|
||||
}
|
||||
</programlisting></example>
|
||||
This example will display all the request headers for the
|
||||
current request.
|
||||
</programlisting>
|
||||
</example>
|
||||
This example will display all the request headers for the current
|
||||
request.
|
||||
<note>
|
||||
<simpara>
|
||||
<function>getallheaders</function> is currently only supported
|
||||
<function>Getallheaders</function> is currently only supported
|
||||
when PHP runs as an <productname>Apache</productname> module.
|
||||
</simpara>
|
||||
</note></para>
|
||||
</note>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
|
@ -136,7 +148,8 @@ while (list($header, $value) = each($headers)) {
|
|||
generate a Content-type header. For PHP files, you need to use
|
||||
<function>include</function> or <function>require</function>;
|
||||
<function>virtual</function> cannot be used to include a
|
||||
document which is itself a PHP file..</para>
|
||||
document which is itself a PHP file.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
|
@ -152,7 +165,7 @@ sgml-always-quote-attributes:t
|
|||
sgml-indent-step:1
|
||||
sgml-indent-data:t
|
||||
sgml-parent-document:nil
|
||||
sgml-default-dtd-file:"../manual.ced"
|
||||
sgml-default-dtd-file:"../../manual.ced"
|
||||
sgml-exposed-tags:nil
|
||||
sgml-local-catalogs:nil
|
||||
sgml-local-ecat-files:nil
|
||||
|
|
Loading…
Reference in a new issue