cvs: phpdoc /en/functions url.xml

From: Date: Sat, 18 Aug 2001 09:59:47 +0000
Subject: cvs: phpdoc /en/functions url.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969337149@lists.php.net to get a copy of this message
goba Sat Aug 18 05:59:47 2001 EDT Modified files: /phpdoc/en/functions url.xml Log: Several fixes: - Using PEAR standards for function calls - URL, FTP, PATH_INFO uppercased - HTML tags lowercased - &gt; can be > in XML Index: phpdoc/en/functions/url.xml diff -u phpdoc/en/functions/url.xml:1.13 phpdoc/en/functions/url.xml:1.14 --- phpdoc/en/functions/url.xml:1.13 Thu Aug 2 13:37:40 2001 +++ phpdoc/en/functions/url.xml Sat Aug 18 05:59:47 2001 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.13 $ --> +<!-- $Revision: 1.14 $ --> <reference id="ref.url"> <title>URL Functions</title> <titleabbrev>URLs</titleabbrev> @@ -22,7 +22,7 @@ data. The returned data may be binary. </para> <para> - See also: <function>base64_encode</function>, RFC-2045 section + See also: <function>base64_encode</function>, RFC2045 section 6.8. </para> </refsect1> @@ -54,7 +54,7 @@ See also: <function>base64_decode</function>, <function>chunk_split</function>, - RFC-2045 section 6.8. + RFC2045 section 6.8. </para> </refsect1> </refentry> @@ -130,20 +130,20 @@ characters from being interpreted as special URL delimiters, and for protecting URL's from being mangled by transmission media with character conversions (like some email systems). For - example, if you want to include a password in an ftp url: + example, if you want to include a password in an FTP URL: <example> <title><function>rawurlencode</function> example 1</title> <programlisting role="php"> -echo '&lt;A HREF="ftp://user:', rawurlencode ('foo @+%/'), +echo '&lt;a href="ftp://user:', rawurlencode('foo @+%/'), '@ftp.my.com/x.txt">'; </programlisting> </example> - Or, if you pass information in a path info component of the url: + Or, if you pass information in a PATH_INFO component of the URL: <example> <title><function>rawurlencode</function> example 2</title> <programlisting role="php"> -echo '&lt;A HREF="http://x.com/department_list_script/', - rawurlencode ('sales and marketing/Miami'), '">'; +echo '&lt;a href="http://x.com/department_list_script/', + rawurlencode('sales and marketing/Miami'), '">'; </programlisting> </example> </para> @@ -174,12 +174,12 @@ <example> <title><function>urldecode</function> example</title> <programlisting role="php"> -$a = split ('&amp;', $QUERY_STRING); +$a = split('&amp;', $QUERY_STRING); $i = 0; -while ($i &lt; count ($a)) { - $b = split ('=', $a [$i]); - echo 'Value for parameter ', htmlspecialchars (urldecode ($b [0])), - ' is ', htmlspecialchars (urldecode ($b [1])), "&lt;BR>"; +while ($i &lt; count($a)) { + $b = split('=', $a[$i]); + echo 'Value for parameter ', htmlspecialchars(urldecode($b[0])), + ' is ', htmlspecialchars(urldecode($b[1])), "&lt;br>"; $i++; } </programlisting> @@ -222,7 +222,7 @@ <example> <title><function>urlencode</function> example</title> <programlisting role="php"> -echo '&lt;A HREF="mycgi?foo=', urlencode ($userinput), '"&gt;'; +echo '&lt;a href="mycgi?foo=', urlencode($userinput), '">'; </programlisting> </example> </para> @@ -243,7 +243,7 @@ <example> <title><function>urlencode/htmlentities</function> example</title> <programlisting role="php"> -echo '&lt;A HREF="mycgi?foo=', htmlentities (urlencode ($userinput) ), '"&gt;'; +echo '&lt;a href="mycgi?foo=', htmlentities (urlencode ($userinput) ), '">'; </programlisting> </example> </para>

« previous php.doc (#969337149) next »