jimw Thu Dec 20 16:27:00 2001 EDT
Modified files:
/phpdoc/en/functions url.xml
Log:
rawurlencode: fix formatting
Index: phpdoc/en/functions/url.xml
diff -u phpdoc/en/functions/url.xml:1.23 phpdoc/en/functions/url.xml:1.24
--- phpdoc/en/functions/url.xml:1.23 Wed Dec 12 15:47:32 2001
+++ phpdoc/en/functions/url.xml Thu Dec 20 16:27:00 2001
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.23 $ -->
+<!-- $Revision: 1.24 $ -->
<reference id="ref.url">
<title>URL Functions</title>
<titleabbrev>URLs</titleabbrev>
@@ -135,26 +135,28 @@
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>
- <title><function>rawurlencode</function> example 1</title>
- <programlisting role="php">
+ </para>
+ <example>
+ <title><function>rawurlencode</function> example 1</title>
+ <programlisting role="php">
<![CDATA[
echo '<a href="ftp://user:', rawurlencode('foo @+%/'),
'@ftp.my.com/x.txt">';
]]>
- </programlisting>
- </example>
+ </programlisting>
+ </example>
+ <para>
Or, if you pass information in a PATH_INFO component of the URL:
- <example>
- <title><function>rawurlencode</function> example 2</title>
- <programlisting role="php">
+ </para>
+ <example>
+ <title><function>rawurlencode</function> example 2</title>
+ <programlisting role="php">
<![CDATA[
echo '<a href="http://x.com/department_list_script/',
rawurlencode('sales and marketing/Miami'), '">';
]]>
- </programlisting>
- </example>
- </para>
+ </programlisting>
+ </example>
<simpara>
See also <function>rawurldecode</function>,
<function>urldecode</function>,