Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > by-pkgid > a34ed6838d4b29d38abd504392a4a797 > files > 2352

php-manual-es-4.3.0-2mdk.noarch.rpm

<HTML
><HEAD
><TITLE
>rawurlencode</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="Manual de PHP"
HREF="index.html"><LINK
REL="UP"
TITLE="Funciones URL"
HREF="ref.url.html"><LINK
REL="PREVIOUS"
TITLE="rawurldecode"
HREF="function.rawurldecode.html"><LINK
REL="NEXT"
TITLE="urldecode"
HREF="function.urldecode.html"><META
HTTP-EQUIV="Content-type"
CONTENT="text/html; charset=ISO-8859-1"></HEAD
><BODY
CLASS="refentry"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Manual de PHP</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="function.rawurldecode.html"
ACCESSKEY="P"
>Anterior</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="function.urldecode.html"
ACCESSKEY="N"
>Siguiente</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="function.rawurlencode"
></A
>rawurlencode</H1
><DIV
CLASS="refnamediv"
><A
NAME="AEN77929"
></A
><P
>    (PHP 3, PHP 4 )</P
>rawurlencode&nbsp;--&nbsp;URL-encode according to RFC 1738</DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN77932"
></A
><H2
>Description</H2
>string <B
CLASS="methodname"
>rawurlencode</B
> ( string str)<BR
></BR
><P
>&#13;     Returns a string in which all non-alphanumeric characters except
     <TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
CELLPADDING="5"
><TR
><TD
><PRE
CLASS="screen"
>-_.</PRE
></TD
></TR
></TABLE
> have been replaced with a percent
     (<TT
CLASS="literal"
>%</TT
>) sign followed by two hex digits.  This is
     the encoding described in RFC 1738 for protecting literal
     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:
    </P
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
CLASS="EXAMPLE"
><TR
><TD
><DIV
CLASS="example"
><A
NAME="AEN77943"
></A
><P
><B
>Ejemplo 1. <B
CLASS="function"
>rawurlencode()</B
> example 1</B
></P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
CELLPADDING="5"
><TR
><TD
><PRE
CLASS="php"
>echo '&#60;a href="ftp://user:', rawurlencode('foo @+%/'),
     '@ftp.my.com/x.txt"&#62;';</PRE
></TD
></TR
></TABLE
></DIV
></TD
></TR
></TABLE
><P
>&#13;     Or, if you pass information in a PATH_INFO component of the URL:
    </P
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
CLASS="EXAMPLE"
><TR
><TD
><DIV
CLASS="example"
><A
NAME="AEN77948"
></A
><P
><B
>Ejemplo 2. <B
CLASS="function"
>rawurlencode()</B
> example 2</B
></P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
CELLPADDING="5"
><TR
><TD
><PRE
CLASS="php"
>echo '&#60;a href="http://x.com/department_list_script/',
    rawurlencode('sales and marketing/Miami'), '"&#62;';</PRE
></TD
></TR
></TABLE
></DIV
></TD
></TR
></TABLE
><P
>&#13;     See also <A
HREF="function.rawurldecode.html"
><B
CLASS="function"
>rawurldecode()</B
></A
>,
     <A
HREF="function.urldecode.html"
><B
CLASS="function"
>urldecode()</B
></A
>,
     <A
HREF="function.urlencode.html"
><B
CLASS="function"
>urlencode()</B
></A
> and
     <A
HREF="http://www.faqs.org/rfcs/rfc1738.html"
TARGET="_top"
>RFC 1738</A
>
    </P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="function.rawurldecode.html"
ACCESSKEY="P"
>Anterior</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Inicio</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="function.urldecode.html"
ACCESSKEY="N"
>Siguiente</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>rawurldecode</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="ref.url.html"
ACCESSKEY="U"
>Subir</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>urldecode</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>