cvs: peardoc /en/package/http/http date.xml head.xml negotiatelanguage.xml redirect.xml

From: Date: Mon, 24 Mar 2003 22:28:25 +0000
Subject: cvs: peardoc /en/package/http/http date.xml head.xml negotiatelanguage.xml redirect.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-516@lists.php.net to get a copy of this message
mj Mon Mar 24 17:28:25 2003 EDT Modified files: /peardoc/en/package/http/http date.xml head.xml negotiatelanguage.xml redirect.xml Log: * Typos Index: peardoc/en/package/http/http/date.xml diff -u peardoc/en/package/http/http/date.xml:1.1.1.1 peardoc/en/package/http/http/date.xml:1.2 --- peardoc/en/package/http/http/date.xml:1.1.1.1 Mon Sep 30 23:23:35 2002 +++ peardoc/en/package/http/http/date.xml Mon Mar 24 17:28:25 2003 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.1.1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry id="package.http.http.date"> <refnamediv> <refname>HTTP::Date</refname> @@ -18,8 +18,9 @@ <refsect1 id="package.http.http.date.desc"> &title.desc; <para> - Format an UNIX timestamp to RFC compliant HTTP header line. This function honors the - <quote>y2k_compliance</quote> php.ini directive. + Converts a UNIX timestamp into an RfC compliant HTTP header line. + This function honors the <quote>y2k_compliance</quote> php.ini + directive. </para> </refsect1> <refsect1 id="package.http.http.date.parameter"> @@ -28,8 +29,7 @@ <itemizedlist> <listitem> <para> - <parameter>integer $time</parameter> - an UNIX - timestamp + <parameter>integer $time</parameter> - a UNIX timestamp </para> </listitem> </itemizedlist> @@ -38,7 +38,7 @@ <refsect1 id="package.http.http.date.return"> &title.returns; <para> - <parameter>string</parameter> - an RFC compliant date header line + <parameter>string</parameter> - a RfC compliant date header line </para> </refsect1> <refsect1 id="package.http.http.date.note"> Index: peardoc/en/package/http/http/head.xml diff -u peardoc/en/package/http/http/head.xml:1.1.1.1 peardoc/en/package/http/http/head.xml:1.2 --- peardoc/en/package/http/http/head.xml:1.1.1.1 Mon Sep 30 23:23:35 2002 +++ peardoc/en/package/http/http/head.xml Mon Mar 24 17:28:25 2003 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.1.1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry id="package.http.http.head"> <refnamediv> <refname>HTTP::head</refname> @@ -19,7 +19,7 @@ &title.desc; <para> Sends a "HEAD" HTTP command to a server and returns the headers - as an associative array. + in an associative array. </para> </refsect1> <refsect1 id="package.http.http.head.parameter"> @@ -37,10 +37,12 @@ <refsect1 id="package.http.http.head.return"> &title.returns; <para> - <parameter>array</parameter> - an array containg the header lines + <parameter>array</parameter> - an array containing the header lines or a &class.pear-error;. - Example output could be: - <programlisting> + </para> + <para> + Example output: + <programlisting role="php"> <![CDATA[ Array ( Index: peardoc/en/package/http/http/negotiatelanguage.xml diff -u peardoc/en/package/http/http/negotiatelanguage.xml:1.1.1.1 peardoc/en/package/http/http/negotiatelanguage.xml:1.2 --- peardoc/en/package/http/http/negotiatelanguage.xml:1.1.1.1 Mon Sep 30 23:23:35 2002 +++ peardoc/en/package/http/http/negotiatelanguage.xml Mon Mar 24 17:28:25 2003 @@ -1,8 +1,8 @@ -<!-- $Revision: 1.1.1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry id="package.http.http.negotiatelanguage"> <refnamediv> <refname>HTTP::negotiateLanguage</refname> - <refpurpose>check prefered client language</refpurpose> + <refpurpose>Negotiate language with the user's browser</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> @@ -29,8 +29,8 @@ Two-letter country codes can be found in the ISO 3166 standard. </para> <para> - Quantities in the Accept-Language: header are supported, for - example: + Quantities in the <literal>Accept-Language:</literal> header are + supported, for example: <programlisting> Accept-Language: en-UK;q=0.7, en-US;q=0.6, no;q=1.0, dk;q=0.8 </programlisting> @@ -50,8 +50,8 @@ <listitem> <para> <parameter>string $default</parameter> - the default - language that should be used when if none of the - other languages is found during negotiation. + language that should be used if none of the other languages + is found during negotiation. </para> </listitem> </itemizedlist> @@ -69,11 +69,13 @@ <para> The returned language is only a hint! Sending the accepted languages by the client is optional. The language settings - of the browser have not to meet the user language - for example a german - traveller in a spanish internet cafe. You could improve your result - with combining it from the result of <link linkend="package.net.net-geo"> - <classname>Net_Geo</classname></link>.But you should still provide a - <quote>Choose your language</quote> menu. + of the browser do not have to meet the user's native language - + for example a german traveller in a spanish internet cafe. You + can improve your result by combining it with the result of + <link linkend="package.net.net-geo"><classname>Net_Geo</classname> + </link>. Apart from that you should still give the user the chance + to manually choose his prefered language. + menu. </para> </refsect1> </refentry> Index: peardoc/en/package/http/http/redirect.xml diff -u peardoc/en/package/http/http/redirect.xml:1.1.1.1 peardoc/en/package/http/http/redirect.xml:1.2 --- peardoc/en/package/http/http/redirect.xml:1.1.1.1 Mon Sep 30 23:23:35 2002 +++ peardoc/en/package/http/http/redirect.xml Mon Mar 24 17:28:25 2003 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.1.1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry id="package.http.http.redirect"> <refnamediv> <refname>HTTP::redirect</refname> @@ -19,7 +19,7 @@ &title.desc; <para> This function redirects the client. This is done by issuing - a Location: header and exiting. + a <literal>Location:</literal> header and exiting. </para> </refsect1> <refsect1 id="package.http.http.redirect.parameter"> @@ -29,7 +29,7 @@ <listitem> <para> <parameter>string $url</parameter> - the new URL, where - to client should be redirected to + to client should be redirected to. </para> </listitem> </itemizedlist> @@ -40,10 +40,10 @@ &note.canstatic; <para> Avoid sending any kind of data to the client before calling - <function>redirect</function>. + <function>redirect</function>. </para> <para> - The location header requires a absolute URL. If not given, + The location header requires an absolute URL. If not given, <function>redirect</function> tries to build one from <parameter>$url</parameter>. So if the redirect fails, set the absolute URL manually as argument.

« previous php.pear.doc (#516) next »