cvs: phpdoc-es /appendices wrappers.xml /reference/filesystem/functions file-get-contents.xml /reference/image/functions imagepsloadfont.xml
/reference/imap/functions imap-fetchheader.xml /reference/info/functions get-cfg-var.xml /reference/math/functions log1p.xml
/reference/mysql/functions mysql-get-host-info.xml mysql-get-proto-info.xml mysql-get-server-info.xml mysql-real-escape-string.xml

From: Date: Fri, 20 Feb 2004 20:49:35 +0000
Subject: cvs: phpdoc-es /appendices wrappers.xml /reference/filesystem/functions file-get-contents.xml /reference/image/functions imagepsloadfont.xml
/reference/imap/functions imap-fetchheader.xml /reference/info/functions get-cfg-var.xml /reference/math/functions log1p.xml
/reference/mysql/functions mysql-get-host-info.xml mysql-get-proto-info.xml mysql-get-server-info.xml mysql-real-escape-string.xml
Groups: php.doc.es 
Request: Send a blank email to doc-es+get-512@lists.php.net to get a copy of this message
lboshell Fri Feb 20 15:49:35 2004 EDT Modified files: /phpdoc-es/appendices wrappers.xml /phpdoc-es/reference/filesystem/functions file-get-contents.xml /phpdoc-es/reference/image/functions imagepsloadfont.xml /phpdoc-es/reference/imap/functions imap-fetchheader.xml /phpdoc-es/reference/info/functions get-cfg-var.xml /phpdoc-es/reference/math/functions log1p.xml /phpdoc-es/reference/mysql/functions mysql-get-host-info.xml mysql-get-proto-info.xml mysql-get-server-info.xml mysql-real-escape-string.xml Log: Nuevas actualizaciones. Correcciones de sangrado y documentos abandonados.

http://cvs.php.net/diff.php/phpdoc-es/appendices/wrappers.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-es/appendices/wrappers.xml diff -u phpdoc-es/appendices/wrappers.xml:1.6 phpdoc-es/appendices/wrappers.xml:1.7 --- phpdoc-es/appendices/wrappers.xml:1.6 Sat Jan 31 10:47:14 2004 +++ phpdoc-es/appendices/wrappers.xml Fri Feb 20 15:49:29 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.35 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.36 Maintainer: lboshell Status: ready --> <appendix id="wrappers"> <title>Lista de Protocolos/Envolturas Soportadas</title> <para> @@ -126,6 +126,7 @@ en el contexto de secuencia, tambi&eacute;n &eacute;sta ser&aacute; usada en la petici&oacute;n. </simpara> + &warn.ssl-non-standard; <simpara> Las redirecciones han sido soportadas desde PHP 4.0.5; si se encuentra usando una versi&oacute;n anterior, necesitar&aacute; http://cvs.php.net/diff.php/phpdoc-es/reference/filesystem/functions/file-get-contents.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-es/reference/filesystem/functions/file-get-contents.xml diff -u phpdoc-es/reference/filesystem/functions/file-get-contents.xml:1.3 phpdoc-es/reference/filesystem/functions/file-get-contents.xml:1.4 --- phpdoc-es/reference/filesystem/functions/file-get-contents.xml:1.3 Fri Jan 16 17:59:15 2004 +++ phpdoc-es/reference/filesystem/functions/file-get-contents.xml Fri Feb 20 15:49:31 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.12 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.13 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.130 --> <refentry id="function.file-get-contents"> <refnamediv> @@ -36,6 +36,7 @@ 5.0.0</literal>. </simpara> </note> + &warn.ssl-non-standard; <simpara> Vea tambi&eacute;n: <function>fgets</function>, <function>file</function>, http://cvs.php.net/diff.php/phpdoc-es/reference/image/functions/imagepsloadfont.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/image/functions/imagepsloadfont.xml diff -u phpdoc-es/reference/image/functions/imagepsloadfont.xml:1.1 phpdoc-es/reference/image/functions/imagepsloadfont.xml:1.2 --- phpdoc-es/reference/image/functions/imagepsloadfont.xml:1.1 Sun Apr 14 20:14:52 2002 +++ phpdoc-es/reference/image/functions/imagepsloadfont.xml Fri Feb 20 15:49:32 2004 @@ -1,24 +1,53 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/image.xml, last change in rev 1.1 --> -<!-- last change to 'imagepsloadfont' in en/ tree in rev 1.7 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.5 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/image.xml, last change in rev 1.7 --> <refentry id="function.imagepsloadfont"> <refnamediv> - <refname>ImagePSLoadFont</refname> - <refpurpose>Carga una fuente PostScript Type 1 desde un fichero</refpurpose> + <refname>imagepsloadfont</refname> + <refpurpose>Cargar una fuente PostScript Tipo 1 desde un + archivo</refpurpose> </refnamediv> <refsect1> <title>Descripci&oacute;n</title> <methodsynopsis> - <type>int</type><methodname>imagepsloadfont</methodname> - <methodparam><type>string</type><parameter>filename</parameter></methodparam> + <type>int</type><methodname>imagepsloadfont</methodname> + <methodparam><type>string</type><parameter>nombre_archivo</parameter></methodparam> </methodsynopsis> <para> - En el caso de que todo vaya bien, tiene que devolver un &iacute;ndice - de fuente correcto que puede ser usado para futuras operaciones. - En caso contrario la funci&oacute;n devuelve &false; e imprime un - mensaje describiendo donde ha fallado</para> + En caso de que todo haya resultado bien, un &iacute;ndice de + fuente v&aacute;lido ser&aacute; devuelto y puede ser usado para + prop&oacute;sitos posteriores. De otro modo, la funci&oacute;n + devuelve &false; e imprime un mensaje describiendo la causa del + fallo, el cual no puede leer directamente mientras que el tipo de + salida sea una imagen. + </para> <para> - Vea tambi&eacute;n <function>imagepsfreefont</function>.</para> + <example> + <title>Ejemplo de <function>imagepsloadfont</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +header("Content-type: image/jpeg"); +$im = imagecreate(350, 45); +$negro = imagecolorallocate($im, 0, 0, 0); +$blanco = imagecolorallocate($im, 255, 255, 255); +$fuente = imagepsloadfont("bchbi.pfb"); // o ubique sus archivos .pfb en su maquina +imagepstext($im, "Probando... &iexcl;Funcion&oacute;!", $fuente, 32, $blanco, $negro, 32, 32); +imagepsfreefont($fuente); +imagejpeg($im, "", 100); // para la mejor calidad...su experiencia puede ser distinta +imagedestroy($im); +?> +]]> + </programlisting> + </example> + </para> + + &note.config.t1lib; + + <para> + Vea tambi&eacute;n <function>imagepsfreefont</function>. + </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/imap/functions/imap-fetchheader.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/imap/functions/imap-fetchheader.xml diff -u phpdoc-es/reference/imap/functions/imap-fetchheader.xml:1.1 phpdoc-es/reference/imap/functions/imap-fetchheader.xml:1.2 --- phpdoc-es/reference/imap/functions/imap-fetchheader.xml:1.1 Sun Apr 14 20:14:56 2002 +++ phpdoc-es/reference/imap/functions/imap-fetchheader.xml Fri Feb 20 15:49:33 2004 @@ -1,37 +1,38 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/imap.xml, last change in rev 1.1 --> -<!-- last change to 'imap-fetchheader' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.5 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/imap.xml, last change in rev 1.2 --> <refentry id="function.imap-fetchheader"> <refnamediv> <refname>imap_fetchheader</refname> - <refpurpose>Devuelve la cabecera del mensaje</refpurpose> + <refpurpose>Devuelve la cabecera de un mensaje</refpurpose> </refnamediv> <refsect1> <title>Descripci&oacute;n</title> <methodsynopsis> - <type>string</type><methodname>imap_fetchheader</methodname> - <methodparam><type>int</type><parameter>imap_stream</parameter></methodparam> - <methodparam><type>int</type><parameter>msgno</parameter></methodparam> - <methodparam><type>int</type><parameter>flags</parameter></methodparam> + <type>string</type><methodname>imap_fetchheader</methodname> + <methodparam><type>resource</type><parameter>secuencia_imap</parameter></methodparam> + <methodparam><type>int</type><parameter>num_mensaje</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>opciones</parameter></methodparam> </methodsynopsis> <para> - Esta funci&oacute;n localiza el formato de la cabecera RFC 822 - del mensaje especificado como una cadena de texto y - devuelve esa cadena de texto. + Esta funci&oacute;n produce la recuperaci&oacute;n de la cabecera + completa, sin filtrar, en formato + <ulink url="&url.rfc;2822">RFC2822</ulink> del mensaje + especificado, como una cadena de texto y devuelve esa cadena de + texto. </para> <para> - The options are: + Las opciones son: <informalexample> <literallayout> - FT_UID El argumento msgno es un UID - FT_INTERNAL La cadena devuelta esta en formato "interno", - sin ning&uacute;n intento de canonizar CRLF - - FT_PREFETCHTEXT The RFC822.TEXT should be pre-fetched at the - same time. Esto evita un extra RTT en una - conexi&oacute;n IMAP si se desea un mensaje completo de - texto (e.g. en una operaci&oacute;n de - "guardar a un fichero local") +FT_UID El argumento num_mensaje es un UID +FT_INTERNAL La cadena de retorno est&aacute; en formato "interno", sin + intento alguno de moldear a nuevas l&iacute;neas tipo CRLF +FT_PREFETCHTEXT El archivo RFC822.TEXT debe ser pre-solicitado al + mismo tiempo. Esto evita un RTT extra en una conexi&oacute;n + IMAP si se desea un mensaje de texto completo + (p.ej. en la operaci&oacute;n "guardar a archivo local") </literallayout> </informalexample> </para> http://cvs.php.net/diff.php/phpdoc-es/reference/info/functions/get-cfg-var.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/info/functions/get-cfg-var.xml diff -u phpdoc-es/reference/info/functions/get-cfg-var.xml:1.1 phpdoc-es/reference/info/functions/get-cfg-var.xml:1.2 --- phpdoc-es/reference/info/functions/get-cfg-var.xml:1.1 Sun Apr 14 20:15:04 2002 +++ phpdoc-es/reference/info/functions/get-cfg-var.xml Fri Feb 20 15:49:33 2004 @@ -1,31 +1,44 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/info.xml, last change in rev 1.1 --> -<!-- last change to 'get-cfg-var' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.4 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/info.xml, last change in rev 1.2 --> <refentry id="function.get-cfg-var"> <refnamediv> <refname>get_cfg_var</refname> - <refpurpose>Obtiene el valor de una opci&oacute;n de configuraci&oacute;n de PHP.</refpurpose> + <refpurpose> + Obtiene el valor de una opci&oacute;n de configuraci&oacute;n de + PHP + </refpurpose> </refnamediv> <refsect1> <title>Descripci&oacute;n</title> <methodsynopsis> - <type>string</type><methodname>get_cfg_var</methodname> - <methodparam><type>string</type><parameter>varname</parameter></methodparam> + <type>string</type><methodname>get_cfg_var</methodname> + <methodparam><type>string</type><parameter>nombre_var</parameter></methodparam> </methodsynopsis> - <simpara> - Devuelve el valor actual de una variable de configuraci&oacute;n de PHP - especificada en <parameter>varname</parameter>, o &false; si ocurre - un error.</simpara> - + Devuelve el valor actual de la opci&oacute;n de + configuraci&oacute;n de PHP indicada + por <parameter>nombre_var</parameter>, o &false; si ocurre un + error. + </simpara> + <simpara> + No devolver&aacute; informaci&oacute;n de configuraci&oacute;n + definida cuando PHP fuera compilado, ni leer desde un archivo de + configuraci&oacute;n de Apache (usando las directivas + php3_configuration_option). + </simpara> + <simpara> + Para chequear si el sistema est&aacute; usando un <link + linkend="configuration.file">archivo de + configuraci&oacute;n</link>, intente recuperar el valor del + par&aacute;metro de configuraci&oacute;n cfg_file_path. Si + &eacute;ste se encuentra disponible, quiere decir que un archivo + de configuraci&oacute;n est&aacute; siendo usado. + </simpara> <simpara> - No devolver&aacute; informaci&oacute;n de la configuracion cuando el PHP fue - compilado, o le&iacute;do desde un fichero de configuraci&oacute;n Apache - (utilizando las directivas php3_configuration_option directives).</simpara> - <simpara> - Para comprobar si el sistema est&aacute; utilizando un <link linkend="configuration.file">fichero de configuraci&oacute;n</link>, - intente recuperar el valor de cfg_file_path. Si est&aacute; disponible, - se est&aacute; utilizando un fichero de configuraci&oacute;n.</simpara> + Vea tambi&eacute;n <function>ini_get</function>. + </simpara> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/math/functions/log1p.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-es/reference/math/functions/log1p.xml diff -u phpdoc-es/reference/math/functions/log1p.xml:1.3 phpdoc-es/reference/math/functions/log1p.xml:1.4 --- phpdoc-es/reference/math/functions/log1p.xml:1.3 Thu Dec 18 20:59:15 2003 +++ phpdoc-es/reference/math/functions/log1p.xml Fri Feb 20 15:49:34 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.4 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.5 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/math.xml, last change in rev 1.63 --> <refentry id='function.log1p'> <refnamediv> http://cvs.php.net/diff.php/phpdoc-es/reference/mysql/functions/mysql-get-host-info.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-es/reference/mysql/functions/mysql-get-host-info.xml diff -u phpdoc-es/reference/mysql/functions/mysql-get-host-info.xml:1.3 phpdoc-es/reference/mysql/functions/mysql-get-host-info.xml:1.4 --- phpdoc-es/reference/mysql/functions/mysql-get-host-info.xml:1.3 Fri Jan 9 13:59:31 2004 +++ phpdoc-es/reference/mysql/functions/mysql-get-host-info.xml Fri Feb 20 15:49:35 2004 @@ -1,11 +1,12 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.8 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.9 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/mysql.xml, last change in rev 1.62 --> <refentry id="function.mysql-get-host-info"> <refnamediv> <refname>mysql_get_host_info</refname> - <refpurpose>Obtener informaci&oacute;n de la m&aacute;quina anfitriona MySQL</refpurpose> + <refpurpose>Obtener informaci&oacute;n de la m&aacute;quina + anfitriona MySQL</refpurpose> </refnamediv> <refsect1> <title>Descripci&oacute;n</title> @@ -14,27 +15,30 @@ <methodparam choice="opt"><type>resource</type><parameter>id_enlace</parameter></methodparam> </methodsynopsis> <para> -<function>mysql_get_host_info</function> devuelve una cadena que -describe el tipo de conexi&oacute;n en uso -con <parameter>id_enlace</parameter>, incluyendo el nombre del equipo -servidor anfitri&oacute;n. Si se -omite <parameter>id_enlace</parameter>, se usar&aacute; la -&uacute;ltima conexi&oacute;n abierta. + <function>mysql_get_host_info</function> devuelve una cadena que + describe el tipo de conexi&oacute;n en uso + con <parameter>id_enlace</parameter>, incluyendo el nombre del + equipo servidor anfitri&oacute;n. Si se + omite <parameter>id_enlace</parameter>, se usar&aacute; la + &uacute;ltima conexi&oacute;n abierta. </para> <para> <example> - <title>Ejemplo de <function>mysql_get_host_info</function></title> + <title>Ejemplo + de <function>mysql_get_host_info</function></title> <programlisting role="php"> <![CDATA[ <?php -mysql_connect("localhost", "mysql_user", "mysql_password") or +$enlace = mysql_connect("localhost", "mysql_user", "mysql_password"); +if (!$enlace) { die("No pudo conectarse: " . mysql_error()); -printf("Informaci&oacute;n del equipo anfitri&oacute;n MySQL: %s\n", mysql_get_host_info()); +} +printf("Informaci&oacute;n del host MySQL: %s\n", mysql_get_host_info()); ?> ]]> </programlisting> <para> -El ejemplo anterior producir&iacute;a la siguiente salida: + El ejemplo anterior producir&iacute;a la siguiente salida: </para> <screen> <![CDATA[ http://cvs.php.net/diff.php/phpdoc-es/reference/mysql/functions/mysql-get-proto-info.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-es/reference/mysql/functions/mysql-get-proto-info.xml diff -u phpdoc-es/reference/mysql/functions/mysql-get-proto-info.xml:1.3 phpdoc-es/reference/mysql/functions/mysql-get-proto-info.xml:1.4 --- phpdoc-es/reference/mysql/functions/mysql-get-proto-info.xml:1.3 Fri Jan 9 13:59:31 2004 +++ phpdoc-es/reference/mysql/functions/mysql-get-proto-info.xml Fri Feb 20 15:49:35 2004 @@ -1,11 +1,12 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.9 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.10 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/mysql.xml, last change in rev 1.62 --> <refentry id="function.mysql-get-proto-info"> <refnamediv> <refname>mysql_get_proto_info</refname> - <refpurpose>Obtener informaci&oacute;n del protocolo MySQL</refpurpose> + <refpurpose>Obtener informaci&oacute;n del protocolo + MySQL</refpurpose> </refnamediv> <refsect1> <title>Descripci&oacute;n</title> @@ -14,26 +15,29 @@ <methodparam choice="opt"><type>resource</type><parameter>id_enlace</parameter></methodparam> </methodsynopsis> <para> -<function>mysql_get_proto_info</function> devuelve la versi&oacute;n -del protocolo usada por la -conexi&oacute;n <parameter>id_enlace</parameter>. Si se -omite <parameter>id_enlace</parameter>, se usar&aacute; la -&uacute;ltima conexi&oacute;n abierta. + <function>mysql_get_proto_info</function> devuelve la + versi&oacute;n del protocolo usada por la + conexi&oacute;n <parameter>id_enlace</parameter>. Si se + omite <parameter>id_enlace</parameter>, se usar&aacute; la + &uacute;ltima conexi&oacute;n abierta. </para> <para> <example> - <title>Ejemplo de <function>mysql_get_proto_info</function></title> + <title>Ejemplo + de <function>mysql_get_proto_info</function></title> <programlisting role="php"> <![CDATA[ <?php -mysql_connect("localhost", "mysql_user", "mysql_password") or +$enlace = mysql_connect("localhost", "mysql_user", "mysql_password"); +if (!$enlace) { die("No pudo conectarse: " . mysql_error()); +} printf("Versi&oacute;n del protocolo MySQL: %s\n", mysql_get_proto_info()); ?> ]]> </programlisting> <para> -El ejemplo anterior producir&iacute;a la siguiente salida: + El ejemplo anterior producir&iacute;a la siguiente salida: </para> <screen> <![CDATA[ http://cvs.php.net/diff.php/phpdoc-es/reference/mysql/functions/mysql-get-server-info.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-es/reference/mysql/functions/mysql-get-server-info.xml diff -u phpdoc-es/reference/mysql/functions/mysql-get-server-info.xml:1.3 phpdoc-es/reference/mysql/functions/mysql-get-server-info.xml:1.4 --- phpdoc-es/reference/mysql/functions/mysql-get-server-info.xml:1.3 Fri Jan 9 13:59:31 2004 +++ phpdoc-es/reference/mysql/functions/mysql-get-server-info.xml Fri Feb 20 15:49:35 2004 @@ -1,11 +1,12 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.8 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.9 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/mysql.xml, last change in rev 1.96 --> <refentry id="function.mysql-get-server-info"> <refnamediv> <refname>mysql_get_server_info</refname> - <refpurpose>Obtener informaci&oacute;n del servidor MySQL</refpurpose> + <refpurpose>Obtener informaci&oacute;n del servidor + MySQL</refpurpose> </refnamediv> <refsect1> <title>Descripci&oacute;n</title> @@ -14,26 +15,29 @@ <methodparam choice="opt"><type>resource</type><parameter>id_enlace</parameter></methodparam> </methodsynopsis> <para> -<function>mysql_get_server_info</function> devuelve la versi&oacute;n -del servidor usado en la -conexi&oacute;n <parameter>id_enlace</parameter>. Si se -omite <parameter>id_enlace</parameter>, ser&aacute; usada la -&uacute;ltima conexi&oacute;n abierta. + <function>mysql_get_server_info</function> devuelve la + versi&oacute;n del servidor usado en la + conexi&oacute;n <parameter>id_enlace</parameter>. Si se + omite <parameter>id_enlace</parameter>, ser&aacute; usada la + &uacute;ltima conexi&oacute;n abierta. </para> <para> <example> - <title>Ejemplo de <function>mysql_get_server_info</function></title> + <title>Ejemplo + de <function>mysql_get_server_info</function></title> <programlisting role="php"> <![CDATA[ <?php -mysql_connect("localhost", "mysql_user", "mysql_password") or +$enlace = mysql_connect("localhost", "mysql_user", "mysql_password"); +if (!$enlace) { die("No pudo conectarse: " . mysql_error()); +} printf("Versi&oacute;n del servidor MySQL: %s\n", mysql_get_server_info()); ?> ]]> </programlisting> <para> -El anterior ejemplo producir&iacute;a la siguiente salida: + El anterior ejemplo producir&iacute;a la siguiente salida: </para> <screen> <![CDATA[ http://cvs.php.net/diff.php/phpdoc-es/reference/mysql/functions/mysql-real-escape-string.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-es/reference/mysql/functions/mysql-real-escape-string.xml diff -u phpdoc-es/reference/mysql/functions/mysql-real-escape-string.xml:1.3 phpdoc-es/reference/mysql/functions/mysql-real-escape-string.xml:1.4 --- phpdoc-es/reference/mysql/functions/mysql-real-escape-string.xml:1.3 Tue Jan 13 23:18:02 2004 +++ phpdoc-es/reference/mysql/functions/mysql-real-escape-string.xml Fri Feb 20 15:49:35 2004 @@ -1,14 +1,14 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.7 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.8 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/mysql.xml, last change in rev 1.100 --> <refentry id="function.mysql-real-escape-string"> <refnamediv> <refname>mysql_real_escape_string</refname> <refpurpose> -Escapa caracteres especiales de una cadena para su uso en una -sentencia SQL, tomando en cuanto el juego de caracteres actual de la -conexi&oacute;n. + Escapa caracteres especiales de una cadena para su uso en una + sentencia SQL, tomando en cuanto el juego de caracteres actual de + la conexi&oacute;n. </refpurpose> </refnamediv> <refsect1> @@ -19,10 +19,11 @@ <methodparam choice="opt"><type>resource</type><parameter>id_enlace</parameter></methodparam> </methodsynopsis> <para> -Esta funci&oacute;n escapar&aacute; todos los caracteres especiales en -la <parameter>cadena_no_escapada</parameter>, tomando en cuenta el -juego de caracteres actual de la conexi&oacute;n, de tal modo que sea -seguro usarla con <function>mysql_query</function>. + Esta funci&oacute;n escapar&aacute; todos los caracteres + especiales en la <parameter>cadena_no_escapada</parameter>, + tomando en cuenta el juego de caracteres actual de la + conexi&oacute;n, de tal modo que sea seguro usarla + con <function>mysql_query</function>. </para> <note> <simpara> @@ -32,12 +33,15 @@ </note> <para> <example> - <title>Ejemplo de <function>mysql_real_escape_string</function></title> + <title>Ejemplo + de <function>mysql_real_escape_string</function></title> <programlisting role="php"> <![CDATA[ <?php -$enlace = mysql_connect("localhost", "usuario_mysql", "contrasenya_mysql") - or die("No pudo conectarse: " . mysql_error()); +$enlace = mysql_connect("localhost", "usuario_mysql", "contrasenya_mysql"); +if (!$enlace) { + die("No pudo conectarse: " . mysql_error()); +} $item = "Zak's and Derick's Laptop"; $item_escapado = mysql_real_escape_string($item, $enlace); printf("Cadena escapada: %s\n", $item_escapado); @@ -45,7 +49,7 @@ ]]> </programlisting> <para> -El ejemplo anterior producir&iacute;a la siguiente salida: + El ejemplo anterior producir&iacute;a la siguiente salida: </para> <screen> <![CDATA[
« previous php.doc.es (#512) next »