mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
8faecd4a57
commit
4e1895a823
1 changed files with 15 additions and 15 deletions
|
@ -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 @@ echo '<A HREF="http://x.com/department_list_script/',
|
|||
<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 @@ while ($i < count ($a)) {
|
|||
<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 @@ echo '<A HREF="mycgi?foo=', urlencode ($userinput), '">';
|
|||
<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>
|
||||
|
|
Loading…
Reference in a new issue