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
- > 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 '<A HREF="ftp://user:', rawurlencode ('foo @+%/'),
+echo '<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 '<A HREF="http://x.com/department_list_script/',
- rawurlencode ('sales and marketing/Miami'), '">';
+echo '<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 ('&', $QUERY_STRING);
+$a = split('&', $QUERY_STRING);
$i = 0;
-while ($i < count ($a)) {
- $b = split ('=', $a [$i]);
- echo 'Value for parameter ', htmlspecialchars (urldecode ($b [0])),
- ' is ', htmlspecialchars (urldecode ($b [1])), "<BR>";
+while ($i < count($a)) {
+ $b = split('=', $a[$i]);
+ echo 'Value for parameter ', htmlspecialchars(urldecode($b[0])),
+ ' is ', htmlspecialchars(urldecode($b[1])), "<br>";
$i++;
}
</programlisting>
@@ -222,7 +222,7 @@
<example>
<title><function>urlencode</function> example</title>
<programlisting role="php">
-echo '<A HREF="mycgi?foo=', urlencode ($userinput), '">';
+echo '<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 '<A HREF="mycgi?foo=', htmlentities (urlencode ($userinput) ), '">';
+echo '<a href="mycgi?foo=', htmlentities (urlencode ($userinput) ), '">';
</programlisting>
</example>
</para>