rawurlencode: fix formatting

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@65781 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
jim winstead 2001-12-20 21:27:00 +00:00
parent 390cd85f04
commit c099115aa1

View file

@ -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>,