cvs: phpdoc /pl/functions url.xml
| From: | Leszek Krupinski | Date: | Sat, 24 Nov 2001 03:52:50 +0000 |
| Subject: | cvs: phpdoc /pl/functions url.xml | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969339208@lists.php.net to get a copy of this message | ||
leszek Fri Nov 23 22:52:50 2001 EDT
Modified files:
/phpdoc/pl/functions url.xml
Log:
Update to new revision, 1.20
Index: phpdoc/pl/functions/url.xml
diff -u phpdoc/pl/functions/url.xml:1.3 phpdoc/pl/functions/url.xml:1.4
--- phpdoc/pl/functions/url.xml:1.3 Sun Nov 11 19:03:18 2001
+++ phpdoc/pl/functions/url.xml Fri Nov 23 22:52:50 2001
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-2"?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
<reference id="ref.url">
<title>Funkcje URL</title>
<titleabbrev>URLs</titleabbrev>
@@ -143,16 +143,20 @@
<example>
<title><function>rawurlencode</function> przyk³ad 1</title>
<programlisting role="php">
-echo '<a href="ftp://user:',
rawurlencode('foo @+%/'),
+<![CDATA[
+echo '<a href="ftp://user:',
rawurlencode('foo @+%/'),
'@ftp.my.com/x.txt">';
+]]>
</programlisting>
</example>
Lub, je¶li podajesz informacjê w czê¶ci PATH_INFO (¶cie¿ka) URL'a:
<example>
<title><function>rawurlencode</function> przyk³ad 2</title>
<programlisting role="php">
-echo '<a href="http://x.com/department_list_script/',
+<![CDATA[
+echo '<a href="http://x.com/department_list_script/',
rawurlencode('sales and marketing/Miami'), '">';
+]]>
</programlisting>
</example>
</para>
@@ -183,14 +187,16 @@
<example>
<title><function>urldecode</function> przyk³ad</title>
<programlisting role="php">
-$a = split('&', $QUERY_STRING);
+<![CDATA[
+$a = split('&', $QUERY_STRING);
$i = 0;
-while ($i < count($a)) {
+while ($i < count($a)) {
$b = split('=', $a[$i]);
echo 'Warto¶æ parametru ', htmlspecialchars(urldecode($b[0])),
' wynosi ', htmlspecialchars(urldecode($b[1])), "<br>";
$i++;
}
+]]>
</programlisting>
</example>
</para>
@@ -232,7 +238,9 @@
<example>
<title><function>urlencode</function> przyk³ad</title>
<programlisting role="php">
-echo '<a href="mycgi?foo=', urlencode($userinput), '">';
+<![CDATA[
+echo '<a href="mycgi?foo=', urlencode($userinput), '">';
+]]>
</programlisting>
</example>
</para>
@@ -254,7 +262,9 @@
<example>
<title><function>urlencode/htmlentities</function> przyk³ad</title>
<programlisting role="php">
-echo '<a href="mycgi?foo=', htmlentities(urlencode($userinput)),
'">';
+<![CDATA[
+echo '<a href="mycgi?foo=', htmlentities(urlencode($userinput)),
'">';
+]]>
</programlisting>
</example>
</para>