cvs: phpdoc-es / translation.xml /reference/mysql/functions mysql-get-proto-info.xml mysql-get-server-info.xml mysql-info.xml
mysql-list-processes.xml mysql-ping.xml mysql-real-escape-string.xml

From: Date: Sat, 04 Oct 2003 10:56:42 +0000
Subject: cvs: phpdoc-es / translation.xml /reference/mysql/functions mysql-get-proto-info.xml mysql-get-server-info.xml mysql-info.xml
mysql-list-processes.xml mysql-ping.xml mysql-real-escape-string.xml
Groups: php.doc.es 
Request: Send a blank email to doc-es+get-336@lists.php.net to get a copy of this message
lboshell Sat Oct 4 06:56:42 2003 EDT Added files: /phpdoc-es/reference/mysql/functions mysql-get-proto-info.xml mysql-get-server-info.xml mysql-info.xml mysql-list-processes.xml mysql-ping.xml mysql-real-escape-string.xml Modified files: /phpdoc-es translation.xml Log: Nuevos archivos de reference/mysql

Index: phpdoc-es/translation.xml diff -u phpdoc-es/translation.xml:1.63 phpdoc-es/translation.xml:1.64 --- phpdoc-es/translation.xml:1.63 Thu Oct 2 03:12:58 2003 +++ phpdoc-es/translation.xml Sat Oct 4 06:56:42 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.63 $ --> +<!-- $Revision: 1.64 $ --> <!DOCTYPE translation SYSTEM "../entities/translation.dtd"> <translation> @@ -32,12 +32,6 @@ <file name="faq/databases.xml" person="webstudio" type="translation" date="11.05.2003"/> <file name="faq/general.xml" person="webstudio" type="translation" date="11.05.2003"/> <file name="faq/html.xml" person="webstudio" type="translation" date="11.05.2003"/> -<file name="reference/mysql/functions/mysql-get-proto-info.xml" person="lboshell" type="translation" date="14.09.2003"/> -<file name="reference/mysql/functions/mysql-get-server-info.xml" person="lboshell" type="translation" date="14.09.2003"/> -<file name="reference/mysql/functions/mysql-info.xml" person="lboshell" type="translation" date="14.09.2003"/> -<file name="reference/mysql/functions/mysql-list-processes.xml" person="lboshell" type="translation" date="14.09.2003"/> -<file name="reference/mysql/functions/mysql-ping.xml" person="lboshell" type="translation" date="14.09.2003"/> -<file name="reference/mysql/functions/mysql-real-escape-string.xml" person="lboshell" type="translation" date="14.09.2003"/> <file name="reference/mysql/functions/mysql-stat.xml" person="lboshell" type="translation" date="14.09.2003"/> <file name="reference/mysql/functions/mysql-thread-id.xml" person="lboshell" type="translation" date="14.09.2003"/> <file name="reference/mysql/functions/mysql-unbuffered-query.xml" person="lboshell" type="translation" date="14.09.2003"/> Index: phpdoc-es/reference/mysql/functions/mysql-get-proto-info.xml +++ phpdoc-es/reference/mysql/functions/mysql-get-proto-info.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.7 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> </refnamediv> <refsect1> <title>Descripci&oacute;n</title> <methodsynopsis> <type>int</type><methodname>mysql_get_proto_info</methodname> <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. </para> <para> <example> <title>Ejemplo de <function>mysql_get_proto_info</function></title> <programlisting role="php"> <![CDATA[ <?php mysql_connect("localhost", "mysql_user", "mysql_password") or 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: </para> <screen> <![CDATA[ Versi&oacute;n del protocolo MySQL: 10 ]]> </screen> </example> </para> <para> Vea tambi&eacute;n <function>mysql_get_client_info</function>, <function>mysql_get_host_info</function> y <function>mysql_get_server_info</function>. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-es/reference/mysql/functions/mysql-get-server-info.xml +++ phpdoc-es/reference/mysql/functions/mysql-get-server-info.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.6 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> </refnamediv> <refsect1> <title>Descripci&oacute;n</title> <methodsynopsis> <type>string</type><methodname>mysql_get_server_info</methodname> <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. </para> <para> <example> <title>Ejemplo de <function>mysql_get_server_info</function></title> <programlisting role="php"> <![CDATA[ <?php mysql_connect("localhost", "mysql_user", "mysql_password") or 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: </para> <screen> <![CDATA[ Versi&oacute;n del servidor MySQL: 4.0.1-alpha ]]> </screen> </example> </para> <para> Vea tambi&eacute;n <function>mysql_get_client_info</function>, <function>mysql_get_host_info</function> y <function>mysql_get_proto_info</function>. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-es/reference/mysql/functions/mysql-info.xml +++ phpdoc-es/reference/mysql/functions/mysql-info.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.5 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/mysql.xml, last change in rev 1.2 --> <refentry id="function.mysql-info"> <refnamediv> <refname>mysql_info</refname> <refpurpose> Obtiene informaci&oacute;n sobre la consulta m&aacute;s reciente </refpurpose> </refnamediv> <refsect1> <title>Descripci&oacute;n</title> <methodsynopsis> <type>string</type><methodname>mysql_info</methodname> <methodparam choice="opt"><type>resource</type><parameter> id_enlace </parameter></methodparam> </methodsynopsis> <para> <function>mysql_info</function> devuelve informaci&oacute;n detallada sobre la &uacute;ltima consulta realizada usando el <parameter>id_enlace</parameter> dado. Si no se indica un <parameter>id_enlace</parameter>, se asumir&aacute; el &uacute;ltimo enlace abierto. </para> <para> <function>mysql_info</function> devuelve una cadena para todas las sentencias listadas a continuaci&oacute;n. En cualquier otro caso, devuelve &false;. El formato de la cadena depende en la sentencia dada. <example> <title>Sentencias MySQL relevantes</title> <programlisting role="mysql"> <![CDATA[ INSERT INTO ... SELECT ... String format: Records: 23 Duplicates: 0 Warnings: 0 INSERT INTO ... VALUES (...),(...),(...)... String format: Records: 37 Duplicates: 0 Warnings: 0 LOAD DATA INFILE ... String format: Records: 42 Deleted: 0 Skipped: 0 Warnings: 0 ALTER TABLE String format: Records: 60 Duplicates: 0 Warnings: 0 UPDATE String format: Rows matched: 65 Changed: 65 Warnings: 0 ]]> </programlisting> </example> Los n&uacute;meros presentados son s&oacute;lo de caracter ilustrativo; sus valores corresponder&aacute;n a la consulta usada. </para> <note> <para> <function>mysql_info</function> devuelve un valor diferente a &false; para la sentencia INSERT ... VALUES s&oacute;lo si se indican m&uacute;ltiples listas de valores en la sentencia. </para> </note> <para> Vea tambi&eacute;n <function>mysql_affected_rows</function>. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-es/reference/mysql/functions/mysql-list-processes.xml +++ phpdoc-es/reference/mysql/functions/mysql-list-processes.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.4 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/mysql.xml, last change in rev 1.96 --> <refentry id="function.mysql-list-processes"> <refnamediv> <refname>mysql_list_processes</refname> <refpurpose>Lista los procesos MySQL</refpurpose> </refnamediv> <refsect1> <title>Descripci&oacute;n</title> <methodsynopsis> <type>resource</type><methodname>mysql_list_processes</methodname> <methodparam choice="opt"><type>resource</type><parameter> id_enlace </parameter></methodparam> </methodsynopsis> <para> <function>mysql_list_processes</function> devuelve un apuntador a un resultado que describe los hilos actuales del servidor. </para> <para> <example> <title>Ejemplo de <function>mysql_list_processes</function></title> <programlisting role="php"> <![CDATA[ <?php $enlace = mysql_connect('localhost', 'mysql_user', 'mysql_password'); $resultado = mysql_list_processes($enlace); while ($fila = mysql_fetch_assoc($resultado)){ printf("%s %s %s %s %s\n", $fila["Id"], $fila["Host"], $fila["db"], $fila["Command"], $fila["Time"]); } mysql_free_result ($resultado); ?> ]]> </programlisting> <para> El ejemplo anterior producir&iacute;a la siguiente salida: </para> <screen> <![CDATA[ 1 localhost test Processlist 0 4 localhost mysql sleep 5 ]]> </screen> </example> </para> <para> Vea tambi&eacute;n <function>mysql_thread_id</function>. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-es/reference/mysql/functions/mysql-ping.xml +++ phpdoc-es/reference/mysql/functions/mysql-ping.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.4 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/mysql.xml, last change in rev 1.100 --> <refentry id="function.mysql-ping"> <refnamediv> <refname>mysql_ping</refname> <refpurpose>Efectuar un chequeo de respuesta (ping) sobre una conexi&oacute;n de servidor o reconectarse si no hay conexi&oacute;n</refpurpose> </refnamediv> <refsect1> <title>Descripci&oacute;n</title> <methodsynopsis> <type>bool</type><methodname>mysql_ping</methodname> <methodparam choice="opt"><type>resource</type><parameter> id_enlace </parameter></methodparam> </methodsynopsis> <para> <function>mysql_ping</function> chequea si est&aacute; activa o no la conexi&oacute;n con el servidor. Si &eacute;sta se ha ca&iacute;do, una reconexi&oacute;n autom&aacute;tica es intentada. Esta funci&oacute;n puede ser usada por scripts que permanecen pasivos durante largos espacios de tiempo, para chequear si el servidor ha cerrado la conexi&oacute;n, y reconectarse de ser necesario. <function>mysql_ping</function> devuelve &true; si la conexi&oacute;n con el servidor est&aacute; funcionando, o &false; de lo contrario. </para> <para> Vea tambi&eacute;n <function>mysql_thread_id</function> y <function>mysql_list_processes</function>. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-es/reference/mysql/functions/mysql-real-escape-string.xml +++ phpdoc-es/reference/mysql/functions/mysql-real-escape-string.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.5 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. </refpurpose> </refnamediv> <refsect1> <title>Descripci&oacute;n</title> <methodsynopsis> <type>string</type><methodname>mysql_real_escape_string</methodname> <methodparam><type>string</type><parameter>cadena_no_escapada</parameter></methodparam> <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>. </para> <note> <simpara> <function>mysql_real_escape_string</function> no escapa <literal>%</literal> ni <literal>_</literal>. </simpara> </note> <para> <example> <title>Ejemplo de <function>mysql_real_escape_string</function></title> <programlisting role="php"> <![CDATA[ <?php $item = "Zak's and Derick's Laptop"; $item_escapado = mysql_real_escape_string($item); printf ("Cadena escapada: %s\n", $item_escapado); ?> ]]> </programlisting> <para> El ejemplo anterior producir&iacute;a la siguiente salida: </para> <screen> <![CDATA[ Cadena escapada: Zak\'s and Derick\'s Laptop ]]> </screen> </example> </para> <para> Vea tambi&eacute;n <function>mysql_escape_string</function> y <function>mysql_character_set_name</function>. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->
« previous php.doc.es (#336) next »