Several fixes:

- Using PEAR standards for function calls
 - URL, FTP, PATH_INFO uppercased
 - HTML tags lowercased
 - > can be > in XML


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@55308 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Gabor Hojtsy 2001-08-18 09:59:47 +00:00
parent 8faecd4a57
commit 4e1895a823

View file

@ -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 @@ echo '&lt;A HREF="http://x.com/department_list_script/',
<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 @@ while ($i &lt; count ($a)) {
<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 @@ echo '&lt;A HREF="mycgi?foo=', urlencode ($userinput), '"&gt;';
<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>