cvs: phpdoc-hu /reference/url/functions rawurlencode.xml
| From: | Cece) Szabolcs | Date: | Mon, 02 Aug 2004 19:45:08 +0000 |
| Subject: | cvs: phpdoc-hu /reference/url/functions rawurlencode.xml | ||
| Groups: | php.doc.hu | ||
| Request: | Send a blank email to doc-hu+get-720@lists.php.net to get a copy of this message | ||
cece Mon Aug 2 15:45:08 2004 EDT
Modified files:
/phpdoc-hu/reference/url/functions rawurlencode.xml
Log:
sync
http://cvs.php.net/diff.php/phpdoc-hu/reference/url/functions/rawurlencode.xml?r1=1.2&r2=1.3&ty=u
Index: phpdoc-hu/reference/url/functions/rawurlencode.xml
diff -u phpdoc-hu/reference/url/functions/rawurlencode.xml:1.2
phpdoc-hu/reference/url/functions/rawurlencode.xml:1.3
--- phpdoc-hu/reference/url/functions/rawurlencode.xml:1.2 Wed Apr 17 02:58:11 2002
+++ phpdoc-hu/reference/url/functions/rawurlencode.xml Mon Aug 2 15:45:08 2004
@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- splitted from ./hu/functions/url.xml, last change in rev 1.3 -->
<!-- last change to 'rawurlencode' in en/ tree in rev 1.6 -->
-<!-- EN-Revision: 1.2 Maintainer: goba Status: ready -->
+<!-- EN-Revision: 1.7 Maintainer: cece Status: ready -->
<!-- OLD-Revision: 1.27/EN.1.6 -->
<refentry id="function.rawurlencode">
<refnamediv>
<refname>rawurlencode</refname>
- <refpurpose>URL-kódolást végez az RFC1738 szerint</refpurpose>
+ <refpurpose>URL-kódolást végez az RFC 1738 szerint</refpurpose>
</refnamediv>
<refsect1>
<title>Leírás</title>
@@ -16,38 +16,50 @@
</methodsynopsis>
<para>
Olyan stringgel tér vissza, amelyben az <parameter>str</parameter> nem
- alfanumerikus karakterei - kivéve a <screen>-_.</screen> karaktereket -
+ alfanumerikus karakterei - kivéve a <literal>-_.</literal> karaktereket -
egy szézalékjelre (<literal>%</literal>) és azt követõ két hexadecimális
- számjegyre lesz lecserélve. Ez az RFC1738-ben leírt kódolásnak megfelelõ,
+ számjegyre lesz lecserélve. Ez az RFC 1738-ben leírt kódolásnak megfelelõ,
amely feloldja a speciális karakterek az URL-ekben történõ használatát
nehezítõ problémát, illetve a közvetítõ média által végrehajtott kódolás
okozta hibákat kiküszöböli. Ha egy jelszót kell például elhelyezni egy FTP
URL-ben:
+ </para>
+ <para>
<example>
<title>Elsõ <function>rawurlencode</function> példa</title>
<programlisting role="php">
<![CDATA[
-echo '<a href="ftp://user:', rawurlencode
('foo @+%/'),
- '@ftp.domain.hu/titkos.txt">';
+<?php
+echo '<a href="ftp://user:',
rawurlencode('foo @+%/'),
+ '@ftp.domain.hu/x.txt">';
+?>
]]>
</programlisting>
</example>
+ </para>
+ <para>
Elõfordulhat azonban, hogy az URL PATH_INFO komponensében kell adatot
átadni:
+ </para>
+ <para>
<example>
<title>Második <function>rawurlencode</function> példa</title>
<programlisting role="php">
<![CDATA[
+<?php
echo '<a href="http://domain.hu/kirendeltsegek_listazo/',
- rawurlencode ('kereskedelmi és marketing/Pécs'), '">';
+ rawurlencode('kereskedelmi és marketing/Pécs'), '">';
+?>
]]>
</programlisting>
</example>
</para>
<simpara>
- Lásd még: <function>rawurldecode</function>,
- <function>urlencode</function> és
- <function>urldecode</function>!
+ Lásd még:
+ <function>rawurldecode</function>,
+ <function>urlencode</function>,
+ <function>urldecode</function> és
+ <ulink url="&url.rfc;1738">RFC 1738</ulink>!
</simpara>
</refsect1>
</refentry>