cvs: phpdoc-es / translation.xml /language operators.xml /reference/filesystem/functions stat.xml /reference/mail/functions mail.xml
/reference/network/functions gethostbyaddr.xml gethostbyname.xml gethostbynamel.xml getmxrr.xml getservbyname.xml getservbyport.xml openlog.xml
pfsockopen.xml syslog.xml /reference/oci8 reference.xml

From: Date: Wed, 25 Jan 2006 05:42:26 +0000
Subject: cvs: phpdoc-es / translation.xml /language operators.xml /reference/filesystem/functions stat.xml /reference/mail/functions mail.xml
/reference/network/functions gethostbyaddr.xml gethostbyname.xml gethostbynamel.xml getmxrr.xml getservbyname.xml getservbyport.xml openlog.xml
pfsockopen.xml syslog.xml /reference/oci8 reference.xml
Groups: php.doc.es 
Request: Send a blank email to doc-es+get-1299@lists.php.net to get a copy of this message
lboshell Wed Jan 25 05:42:26 2006 UTC Modified files: /phpdoc-es translation.xml /phpdoc-es/language operators.xml /phpdoc-es/reference/filesystem/functions stat.xml /phpdoc-es/reference/mail/functions mail.xml /phpdoc-es/reference/network/functions gethostbyaddr.xml gethostbyname.xml gethostbynamel.xml getmxrr.xml getservbyname.xml getservbyport.xml openlog.xml pfsockopen.xml syslog.xml /phpdoc-es/reference/oci8 reference.xml Log: * Actualizaciones * Adopcion de documentos sin encargado previo

http://cvs.php.net/viewcvs.cgi/phpdoc-es/translation.xml?r1=1.221&r2=1.222&diff_format=u Index: phpdoc-es/translation.xml diff -u phpdoc-es/translation.xml:1.221 phpdoc-es/translation.xml:1.222 --- phpdoc-es/translation.xml:1.221 Sat Jan 14 13:21:36 2006 +++ phpdoc-es/translation.xml Wed Jan 25 05:42:25 2006 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.221 $ --> +<!-- $Revision: 1.222 $ --> <!DOCTYPE translation SYSTEM "../dtds/translation.dtd"> <translation> @@ -129,24 +129,5 @@ <file name="reference/bcompiler/functions/bcompiler-write-header.xml" person="gustavo" type="translation" date="18.12.2005"/> - <file name="reference/network/functions/gethostbyaddr.xml" - person="lboshell" type="revision" date="03.01.2006"/> - <file name="reference/network/functions/gethostbyname.xml" - person="lboshell" type="revision" date="03.01.2006"/> - <file name="reference/network/functions/gethostbynamel.xml" - person="lboshell" type="revision" date="03.01.2006"/> - <file name="reference/network/functions/getmxrr.xml" - person="lboshell" type="revision" date="03.01.2006"/> - <file name="reference/network/functions/getservbyname.xml" - person="lboshell" type="revision" date="03.01.2006"/> - <file name="reference/network/functions/getservbyport.xml" - person="lboshell" type="revision" date="03.01.2006"/> - <file name="reference/network/functions/openlog.xml" - person="lboshell" type="revision" date="03.01.2006"/> - <file name="reference/network/functions/pfsockopen.xml" - person="lboshell" type="revision" date="03.01.2006"/> - <file name="reference/network/functions/syslog.xml" - person="lboshell" type="revision" date="03.01.2006"/> - </work-in-progress> </translation> http://cvs.php.net/viewcvs.cgi/phpdoc-es/language/operators.xml?r1=1.24&r2=1.25&diff_format=u Index: phpdoc-es/language/operators.xml diff -u phpdoc-es/language/operators.xml:1.24 phpdoc-es/language/operators.xml:1.25 --- phpdoc-es/language/operators.xml:1.24 Wed Nov 16 02:33:44 2005 +++ phpdoc-es/language/operators.xml Wed Jan 25 05:42:25 2006 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.24 $ --> -<!-- EN-Revision: 1.98 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.25 $ --> +<!-- EN-Revision: 1.99 Maintainer: lboshell Status: ready --> <chapter id="language.operators"> <title>Operadores</title> <simpara> @@ -359,11 +359,11 @@ </para> <para> En conjunto con el operador b&aacute;sico de asignaci&oacute;n, - existen "operadores combinados" para todas las operaciones - de <link linkend="language.operators">aritm&eacute;tica - binaria</link> y de cadenas, que le permiten usar un valor en una - expresi&oacute;n y luego definir su valor como el resultado de esa - expresi&oacute;n. Por ejemplo: + existen "operadores combinados" para todos los operadores de <link + linkend="language.operators">aritm&eacute;tica binaria</link>, + uni&oacute;n de matrices y de cadenas, que le permiten usar un + valor en una expresi&oacute;n y luego definir su valor como el + resultado de esa expresi&oacute;n. Por ejemplo: <informalexample> <programlisting role="php"> <![CDATA[ http://cvs.php.net/viewcvs.cgi/phpdoc-es/reference/filesystem/functions/stat.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc-es/reference/filesystem/functions/stat.xml diff -u phpdoc-es/reference/filesystem/functions/stat.xml:1.2 phpdoc-es/reference/filesystem/functions/stat.xml:1.3 --- phpdoc-es/reference/filesystem/functions/stat.xml:1.2 Wed May 26 11:22:11 2004 +++ phpdoc-es/reference/filesystem/functions/stat.xml Wed Jan 25 05:42:26 2006 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.12 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.13 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 --> <refentry id="function.stat"> <refnamediv> @@ -125,8 +125,8 @@ </tgroup> </table> - * - v&aacute;lido &uacute;nicamente en sistemas que soportan el - tipo st_blksize--los dem&aacute;s sistemas (como Windows) + * V&aacute;lido &uacute;nicamente en sistemas que soportan el + tipo st_blksize - los dem&aacute;s sistemas (p.ej. Windows) devuelven -1. </para> http://cvs.php.net/viewcvs.cgi/phpdoc-es/reference/mail/functions/mail.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc-es/reference/mail/functions/mail.xml diff -u phpdoc-es/reference/mail/functions/mail.xml:1.5 phpdoc-es/reference/mail/functions/mail.xml:1.6 --- phpdoc-es/reference/mail/functions/mail.xml:1.5 Fri Apr 29 04:29:23 2005 +++ phpdoc-es/reference/mail/functions/mail.xml Wed Jan 25 05:42:26 2006 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.33 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.34 Maintainer: lboshell Status: ready --> <refentry id="function.mail"> <refnamediv> <refname>mail</refname> @@ -402,7 +402,7 @@ Para el env&iacute;o de grandes cantidades de correo electr&oacute;nico, vea los paquetes <ulink url="&url.pear.package;Mail">PEAR::Mail</ulink> y <ulink - url="&url.pear.package;Mail_Mime">PEAR::Mail_Queue</ulink>. + url="&url.pear.package;Mail_Queue">PEAR::Mail_Queue</ulink>. </para> </note> http://cvs.php.net/viewcvs.cgi/phpdoc-es/reference/network/functions/gethostbyaddr.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc-es/reference/network/functions/gethostbyaddr.xml diff -u phpdoc-es/reference/network/functions/gethostbyaddr.xml:1.1 phpdoc-es/reference/network/functions/gethostbyaddr.xml:1.2 --- phpdoc-es/reference/network/functions/gethostbyaddr.xml:1.1 Mon Apr 15 00:16:51 2002 +++ phpdoc-es/reference/network/functions/gethostbyaddr.xml Wed Jan 25 05:42:26 2006 @@ -1,27 +1,46 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/network.xml, last change in rev 1.1 --> -<!-- last change to 'gethostbyaddr' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.7 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/network.xml, last change in rev 1.2 --> <refentry id="function.gethostbyaddr"> <refnamediv> <refname>gethostbyaddr</refname> - <refpurpose>Obtiene el nombre de una m&aacute;quina en Internet mediante su - direcci&oacute;n IP.</refpurpose> + <refpurpose> + Obtener el nombre del host de Internet correspondiente a una + direcci&oacute;n IP dada + </refpurpose> </refnamediv> <refsect1> <title>Descripci&oacute;n</title> <methodsynopsis> - <type>string</type><methodname>gethostbyaddr</methodname> - <methodparam><type>string</type><parameter>ip_address</parameter></methodparam> + <type>string</type><methodname>gethostbyaddr</methodname> + <methodparam><type>string</type><parameter>direccion_ip</parameter></methodparam> </methodsynopsis> - <para> - Devuelve el nombre del ordenador conectado a Internet - espeficado por el par&aacute;metro <parameter>ip_address</parameter>. - Si ocurre un error, devuelve <parameter>ip_address</parameter>.</para> - - <para> - Ver tambi&eacute;n <function>gethostbyname</function>.</para> + Devuelve el nombre del host de Internet especificado por + <parameter>direccion_ip</parameter> o una cadena que contiene el + valor <parameter>direccion_ip</parameter> sin modificar si la + funci&oacute;n falla. + </para> + <para> + <example> + <title>Un ejemplo sencillo de + <function>gethostbyaddr</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +$nombre_host = gethostbyaddr($_SERVER['REMOTE_ADDR']); +echo $nombre_host; +?> +]]> + </programlisting> + </example> + </para> + <para> + Vea tambi&eacute;n <function>gethostbyname</function>, y + <function>gethostbynamel</function>. + </para> </refsect1> </refentry> http://cvs.php.net/viewcvs.cgi/phpdoc-es/reference/network/functions/gethostbyname.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc-es/reference/network/functions/gethostbyname.xml diff -u phpdoc-es/reference/network/functions/gethostbyname.xml:1.1 phpdoc-es/reference/network/functions/gethostbyname.xml:1.2 --- phpdoc-es/reference/network/functions/gethostbyname.xml:1.1 Mon Apr 15 00:16:51 2002 +++ phpdoc-es/reference/network/functions/gethostbyname.xml Wed Jan 25 05:42:26 2006 @@ -1,26 +1,46 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/network.xml, last change in rev 1.1 --> -<!-- last change to 'gethostbyname' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.10 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/network.xml, last change in rev 1.2 --> <refentry id="function.gethostbyname"> <refnamediv> <refname>gethostbyname</refname> - <refpurpose>Obtiene la direcci&oacute;n IP correspondiente al nombre de una - m&aacute;quina conectada a Internet.</refpurpose> + <refpurpose> + Obtener la direcci&oacute;n IP correspondiente a un nombre de + host de Internet dado + </refpurpose> </refnamediv> <refsect1> <title>Descripci&oacute;n</title> <methodsynopsis> - <type>string</type><methodname>gethostbyname</methodname> - <methodparam><type>string</type><parameter>hostname</parameter></methodparam> + <type>string</type><methodname>gethostbyname</methodname> + <methodparam><type>string</type><parameter>nombre_host</parameter></methodparam> </methodsynopsis> - <para> - Devuelve la direcci&oacute;n IP de una m&aacute;quina conectada a Internet - especificada por <parameter>hostname</parameter>.</para> - - <para> - Ver tambi&eacute;n <function>gethostbyaddr</function>.</para> + Devuelve la direcci&oacute;n IP del host de Internet especificado + por <parameter>nombre_host</parameter> o una cadena que contiene + el valor <parameter>nombre_host</parameter> sin modificar si la + funci&oacute;n falla. + </para> + <para> + <example> + <title>Un ejemplo sencillo de + <function>gethostbyname</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +$ip = gethostbyname('www.example.com'); +echo $ip; +?> +]]> + </programlisting> + </example> + </para> + <para> + Vea tambi&eacute;n <function>gethostbyaddr</function>, y + <function>gethostbynamel</function>. + </para> </refsect1> </refentry> http://cvs.php.net/viewcvs.cgi/phpdoc-es/reference/network/functions/gethostbynamel.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc-es/reference/network/functions/gethostbynamel.xml diff -u phpdoc-es/reference/network/functions/gethostbynamel.xml:1.1 phpdoc-es/reference/network/functions/gethostbynamel.xml:1.2 --- phpdoc-es/reference/network/functions/gethostbynamel.xml:1.1 Mon Apr 15 00:16:51 2002 +++ phpdoc-es/reference/network/functions/gethostbynamel.xml Wed Jan 25 05:42:26 2006 @@ -1,31 +1,55 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/network.xml, last change in rev 1.1 --> -<!-- last change to 'gethostbynamel' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.6 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/network.xml, last change in rev 1.2 --> <refentry id="function.gethostbynamel"> <refnamediv> <refname>gethostbynamel</refname> - <refpurpose>Obtiene una lista de direcciones IP correspondientea a los nombres de - m&aacute;quinas conectadas a Internet.</refpurpose> + <refpurpose> + Obtener una lista de direcciones IP correspondientes a un nombre + de host de Internet dado + </refpurpose> </refnamediv> <refsect1> <title>Descripci&oacute;n</title> <methodsynopsis> - <type>array</type><methodname>gethostbynamel</methodname> - <methodparam><type>string</type><parameter>hostname</parameter></methodparam> + <type>array</type><methodname>gethostbynamel</methodname> + <methodparam><type>string</type><parameter>nombre_host</parameter></methodparam> </methodsynopsis> - <para> - Devuleve una lista de direcciones IP pertenecientes a ordenadores - especificados por <parameter>hostname</parameter>.</para> - + Devuelve una lista de direcciones IP a las que resuelve el host + de Internet especificado por + <parameter>nombre_host</parameter>. Devuelve &false; if + <parameter>nombre_host</parameter> no puede resolverse. + </para> + <example> + <title>Ejemplo de <function>gethostbynamel</function></title> + <programlisting role="php"> +<![CDATA[ +<?php + $hosts = gethostbynamel('www.example.com'); + print_r($hosts); +?> +]]> + </programlisting> + <para> + La salida del programa anterior ser&aacute;: + </para> + <screen> +<![CDATA[ +Array +( + [0] => 192.0.34.166 +) +]]> + </screen> + </example> <para> - Ver tambi&eacute;n - <function>gethostbyname</function>, - <function>gethostbyaddr</function>, - <function>checkdnsrr</function>, - <function>getmxrr</function>, y - named(8) en las p&aacute;ginas del manual.</para> - + Vea tambi&eacute;n <function>gethostbyname</function>, + <function>gethostbyaddr</function>, + <function>checkdnsrr</function>, <function>getmxrr</function>, y + la p&aacute;gino de manual para <literal>named(8)</literal>. + </para> </refsect1> </refentry> http://cvs.php.net/viewcvs.cgi/phpdoc-es/reference/network/functions/getmxrr.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc-es/reference/network/functions/getmxrr.xml diff -u phpdoc-es/reference/network/functions/getmxrr.xml:1.1 phpdoc-es/reference/network/functions/getmxrr.xml:1.2 --- phpdoc-es/reference/network/functions/getmxrr.xml:1.1 Mon Apr 15 00:16:51 2002 +++ phpdoc-es/reference/network/functions/getmxrr.xml Wed Jan 25 05:42:26 2006 @@ -1,40 +1,67 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/network.xml, last change in rev 1.1 --> -<!-- last change to 'getmxrr' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.12 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/network.xml, last change in rev 1.2 --> <refentry id="function.getmxrr"> <refnamediv> <refname>getmxrr</refname> - <refpurpose>Obtiene registros MX correspondientes a una m&aacute;quina - conectada a Internet. + <refpurpose> + Obtener los registros MX correspondientes a un nombre de host de + Internet dado </refpurpose> </refnamediv> <refsect1> <title>Descripci&oacute;n</title> <methodsynopsis> - <type>int</type><methodname>getmxrr</methodname> - <methodparam><type>string</type><parameter>hostname</parameter></methodparam> - <methodparam><type>array</type><parameter>mxhosts</parameter></methodparam> - <methodparam choice="opt"><type>array</type><parameter>weight</parameter></methodparam> + <type>bool</type><methodname>getmxrr</methodname> + <methodparam><type>string</type><parameter>nombre_host</parameter></methodparam> + <methodparam><type>array</type><parameter role="reference">hosts_mx</parameter></methodparam> + <methodparam choice="opt"><type>array</type><parameter role="reference">peso</parameter></methodparam> </methodsynopsis> - <simpara> - Busca DNS de registros MX correspondientes a - <parameter>hostname</parameter>. Devuelve verdadero si encuentra alg£n - registro; devuelve falso si no encuentra ninguno o se produce un error.</simpara> - + Busca en DNS por registros MX correspondientes a + <parameter>nombre_host</parameter>. Devuelve &true; si se + encuentran registros; devuelve &false; si no se encuentran + registros o si ocurre un error. + </simpara> <simpara> - La lista de registros MX encontrados se colocan en el array - <parameter>mxhosts</parameter>. Si se proporciona el array - <parameter>weight</parameter>, se rellenar&aacute; con la informaci&oacute;n obtenida.</simpara> - + Una lista de los registros MX encontrados es colocada en la + matriz <parameter>hosts_mx</parameter>. Si la matriz + <parameter>peso</parameter> es definida, ser&aacute; llenada con + la informaci&oacute;n de peso recolectada. + </simpara> + <para> + <note> + <simpara> + Esta funci&oacute;n no debe ser usada para prop&oacute;sitos de + verificaci&oacute;n de direcciones. Solo los puntos de + intercambio de correo en DNS son devueltos, sin embargo, de + acuerdo a <ulink url="&url.rfc;2821">RFC 2821</ulink>, cuando + no se listan puntos de intercambio de correo, + <parameter>nombre_host</parameter> mismo deber&iacute;a ser + usado como el &uacute;nico punto de intercambio de correo con + una prioridad de <literal>0</literal>. + </simpara> + </note> + </para> + <para> + <note> + <simpara> + Esta funci&oacute;n no es implementada en plataformas + Windows. Intente la clase de <ulink + url="&url.php.pear;">PEAR</ulink> <ulink + url="&url.pear.package;Net_DNS">Net_DNS</ulink>. + </simpara> + </note> + </para> <simpara> - Ver tambi&eacute;n - <function>checkdnsrr</function>, + Vea tambi&eacute;n <function>checkdnsrr</function>, + <function>dns_get_record</function>, <function>gethostbyname</function>, <function>gethostbynamel</function>, - <function>gethostbyaddr</function>, y - named(8) de las p&aacute;ginas del manual.</simpara> - + <function>gethostbyaddr</function>, y la p&aacute;gina de manual + para <literal>named(8)</literal>. + </simpara> </refsect1> </refentry> http://cvs.php.net/viewcvs.cgi/phpdoc-es/reference/network/functions/getservbyname.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc-es/reference/network/functions/getservbyname.xml diff -u phpdoc-es/reference/network/functions/getservbyname.xml:1.1 phpdoc-es/reference/network/functions/getservbyname.xml:1.2 --- phpdoc-es/reference/network/functions/getservbyname.xml:1.1 Mon Apr 15 00:16:52 2002 +++ phpdoc-es/reference/network/functions/getservbyname.xml Wed Jan 25 05:42:26 2006 @@ -1,27 +1,58 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/network.xml, last change in rev 1.1 --> -<!-- last change to 'getservbyname' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.5 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/network.xml, last change in rev 1.2 --> <refentry id="function.getservbyname"> <refnamediv> <refname>getservbyname</refname> - <refpurpose>obtiene el n£mero del puerto asociado al servicio Internet especificado</refpurpose> + <refpurpose> + Obtener el n&uacute;mero de puerto asociado con un servicio y + protocolo de Internet + </refpurpose> </refnamediv> <refsect1> <title>Descripci&oacute;n</title> <methodsynopsis> - <type>int</type><methodname>getservbyname</methodname> - <methodparam><type>string</type><parameter>service</parameter></methodparam> - <methodparam><type>string</type><parameter>protocol</parameter></methodparam> + <type>int</type><methodname>getservbyname</methodname> + <methodparam><type>string</type><parameter>servicio</parameter></methodparam> + <methodparam><type>string</type><parameter>protocolo</parameter></methodparam> </methodsynopsis> - <para> - <function>getservbyname</function> devuelve el puerto que - corresponde al <parameter>service</parameter> especificado por el - <parameter>protocol</parameter> en /etc/services. - <parameter>protocol</parameter> puede ser <literal>tcp</literal> o - <literal>udp</literal>. - - Ver tambi&eacute;n <function>getservbyport</function>.</para> + <function>getservbyname</function> devuelve el puerto de Internet + que corresponde a <parameter>servicio</parameter> para el + <parameter>protocolo</parameter> especificado, de acuerdo a + <filename>/etc/services</filename>. + <parameter>protocolo</parameter> es un valor entre + <literal>"tcp"</literal> o <literal>"udp"</literal> (es + min&uacute;sculas). Devuelve &false; si + <parameter>servicio</parameter> o + <parameter>protocolo</parameter> no son encontrados. + </para> + <para> + <example> + <title>Ejemplo de <function>getservbyname</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +$servicios = array('http', 'ftp', 'ssh', 'telnet', 'imap', +'smtp', 'nicname', 'gopher', 'finger', 'pop3', 'www'); + +foreach ($servicios as $servicio) { + $puerto = getservbyname($servicio, 'tcp'); + echo $servicio . ": " . $puerto . "<br />\n"; +} +?> +]]> + </programlisting> + </example> + </para> + <para> + Para una lista completa de n&uacute;meros de puerto vea: + &url.network.port-numbers;. + </para> + <para> + Vea tambi&eacute;n: <function>getservbyport</function>. + </para> </refsect1> </refentry> http://cvs.php.net/viewcvs.cgi/phpdoc-es/reference/network/functions/getservbyport.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc-es/reference/network/functions/getservbyport.xml diff -u phpdoc-es/reference/network/functions/getservbyport.xml:1.1 phpdoc-es/reference/network/functions/getservbyport.xml:1.2 --- phpdoc-es/reference/network/functions/getservbyport.xml:1.1 Mon Apr 15 00:16:52 2002 +++ phpdoc-es/reference/network/functions/getservbyport.xml Wed Jan 25 05:42:26 2006 @@ -1,28 +1,34 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/network.xml, last change in rev 1.1 --> -<!-- last change to 'getservbyport' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.2 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/network.xml, last change in rev 1.2 --> <refentry id="function.getservbyport"> <refnamediv> <refname>getservbyport</refname> - <refpurpose>obtiene el servicio Internet que correspondiente al puerto del protocolo especificado</refpurpose> - + <refpurpose> + Obtener el servicio de Internet que corresponde con el puerto y + protocolo + </refpurpose> </refnamediv> <refsect1> <title>Descripci&oacute;n</title> <methodsynopsis> - <type>string</type><methodname>getservbyport</methodname> - <methodparam><type>int</type><parameter>port</parameter></methodparam> - <methodparam><type>string</type><parameter>protocol</parameter></methodparam> + <type>string</type><methodname>getservbyport</methodname> + <methodparam><type>int</type><parameter>puerto</parameter></methodparam> + <methodparam><type>string</type><parameter>protocolo</parameter></methodparam> </methodsynopsis> - <para> - <function>getservbyport</function> delvuelve el servicio Internet - asociado al <parameter>port</parameter> para el - <parameter>protocol</parameter> especificado en /etc/services. - <parameter>protocol</parameter> puede ser <literal>tcp</literal> o - <literal>udp</literal>. - - Ver tambi&eacute;n <function>getservbyname</function>.</para> + <function>getservbyport</function> devuelve el servicio de + Internet asociado con <parameter>puerto</parameter> para el + <parameter>protocolo</parameter> especificado, de acuerdo a + <filename>/etc/services</filename>. + <parameter>protocolo</parameter> es un valor entre + <literal>"tcp"</literal> o <literal>"udp"</literal> (en + min&uacute;sculas). + </para> + <para> + Vea tambi&eacute;n: <function>getservbyname</function>. + </para> </refsect1> </refentry> http://cvs.php.net/viewcvs.cgi/phpdoc-es/reference/network/functions/openlog.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc-es/reference/network/functions/openlog.xml diff -u phpdoc-es/reference/network/functions/openlog.xml:1.1 phpdoc-es/reference/network/functions/openlog.xml:1.2 --- phpdoc-es/reference/network/functions/openlog.xml:1.1 Mon Apr 15 00:16:52 2002 +++ phpdoc-es/reference/network/functions/openlog.xml Wed Jan 25 05:42:26 2006 @@ -1,30 +1,171 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/network.xml, last change in rev 1.1 --> -<!-- last change to 'openlog' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.7 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/network.xml, last change in rev 1.2 --> <refentry id="function.openlog"> <refnamediv> <refname>openlog</refname> - <refpurpose>abre una conexi&oacute;n con el logger del sistema</refpurpose> + <refpurpose>Abrir una conexi&oacute;n con el registro del + sistema</refpurpose> </refnamediv> <refsect1> <title>Descripci&oacute;n</title> <methodsynopsis> - <type>int</type><methodname>openlog</methodname> - <methodparam><type>string</type><parameter>ident</parameter></methodparam> - <methodparam><type>int</type><parameter>option</parameter></methodparam> - <methodparam><type>int</type><parameter>facility</parameter></methodparam> + <type>bool</type><methodname>openlog</methodname> + <methodparam><type>string</type><parameter>id</parameter></methodparam> + <methodparam><type>int</type><parameter>opcion</parameter></methodparam> + <methodparam><type>int</type><parameter>recurso</parameter></methodparam> </methodsynopsis> - <para> - <function>openlog</function> abre una conexi&oacute;n con el logger del sistema. - La cadena <parameter>ident</parameter> se a¤ade a cada mensaje. - Los valores de <parameter>option</parameter> y <parameter>facility</parameter> - se exponen en la siguiente secci&oacute;n. El uso de openlog() is opcional; Esta ser&aacute; llamada automaticamente - por <function>syslog</function> si fuera necesario, en este caso - <parameter>ident</parameter> valdr&aacute; por defecto &false;. - - Ver tambi&eacute;n <function>syslog</function> y - <function>closelog</function>.</para> + <function>openlog</function> abre una conexi&oacute;n con el + registro del sistema para un programa. La cadena + <parameter>id</parameter> es agregada a cada mensaje. Los valores + para <parameter>opcion</parameter> y + <parameter>recurso</parameter> son dados m&aacute;s adelante. El + argumento <parameter>opcion</parameter> es usado para indicar + qu&eacute; opciones de registro ser&aacute;n usadas cuando se + genere un mensaje de registro. El argumento + <parameter>recurso</parameter> es usado para especificar + qu&eacute; tipo de programa est&aacute; registrando el + mensaje. Esto le permite especificar (en la configuraci&oacute;n + de syslog de su m&aacute;quina) c&oacute;mo ser&aacute;n + manejados los mensajes provenientes de diferentes recursos. El + uso de <function>openlog</function> es opcional. La + funci&oacute;n ser&aacute; llamada autom&aacute;ticamente por + <function>syslog</function> si es necesario, en cuyo caso el + valor predeterminado para <parameter>id</parameter> + ser&aacute; &false;. + </para> + <para> + <table> + <title>Opciones de <function>openlog</function></title> + <tgroup cols="2"> + <thead> + <row> + <entry>Constante</entry> + <entry>Descripci&oacute;n</entry> + </row> + </thead> + <tbody> + <row> + <entry>LOG_CONS</entry> + <entry> + si hay un error mientras se env&iacute;an datos al registro + del sistema, escribirlos directamente a la consola del + sistema + </entry> + </row> + <row> + <entry>LOG_NDELAY</entry> + <entry> + abrir la conexi&oacute;n con el registro inmediatamente + </entry> + </row> + <row> + <entry>LOG_ODELAY</entry> + <entry> + (predeterminado) retrasar la apertura de la conexi&oacute;n + hasta que el primer mensaje sea registrado + </entry> + </row> + <row> + <entry>LOG_PERROR</entry> + <entry>imprimir el mensaje de registro a la salida de errores + est&aacute;ndar tambi&eacute;n</entry> + </row> + <row> + <entry>LOG_PID</entry> + <entry>incluir el valor PID con cada mensaje</entry> + </row> + </tbody> + </tgroup> + </table> + Es posible usar una o m&aacute;s de estas opciones. Cuando se + usen m&uacute;ltiples opciones, es necesario combinarlas mediante + la operaci&oacute;n <literal>OR</literal>, es decir, para abrir + la conexi&oacute;n inmediatamente, escribir a la consola e + incluir el PID en cada mensaje, se deber&aacute; usar: + <literal>LOG_CONS | LOG_NDELAY | LOG_PID</literal> + </para> + <para> + <table> + <title>Recursos de <function>openlog</function></title> + <tgroup cols="2"> + <thead> + <row> + <entry>Constante</entry> + <entry>Descripci&oacute;n</entry> + </row> + </thead> + <tbody> + <row> + <entry>LOG_AUTH</entry> + <entry> + mensajes de seguridad/autorizaci&oacute;n (use LOG_AUTHPRIV + en su lugar en sistemas en donde &eacute;sta &uacute;ltima + est&eacute; definida) + </entry> + </row> + <row> + <entry>LOG_AUTHPRIV</entry> + <entry>mensajes de seguridad/autorizaci&oacute;n + (privados)</entry> + </row> + <row> + <entry>LOG_CRON</entry> + <entry>daemonio de reloj (cron y at)</entry> + </row> + <row> + <entry>LOG_DAEMON</entry> + <entry>otros daemonios de sistema</entry> + </row> + <row> + <entry>LOG_KERN</entry> + <entry>mensajes de n&uacute;cleo</entry> + </row> + <row> + <entry>LOG_LOCAL0 ... LOG_LOCAL7</entry> + <entry>reservados para uso local, no est&aacute;n disponibles + en Windows</entry> + </row> + <row> + <entry>LOG_LPR</entry> + <entry>subsistema de impresora de l&iacute;nea</entry> + </row> + <row> + <entry>LOG_MAIL</entry> + <entry>subsistema de correo</entry> + </row> + <row> + <entry>LOG_NEWS</entry> + <entry>subsistema de noticias USENET</entry> + </row> + <row> + <entry>LOG_SYSLOG</entry> + <entry>mensajes generados internamente por syslogd</entry> + </row> + <row> + <entry>LOG_USER</entry> + <entry>mensajes gen&eacute;ricos de nivel de usuario</entry> + </row> + <row> + <entry>LOG_UUCP</entry> + <entry>subsistema UUCP</entry> + </row> + </tbody> + </tgroup> + </table> + </para> + <note> + <para> + <literal>LOG_USER</literal> es el &uacute;nico tipo de registro + v&aacute;lido bajo sistemas operativos Windows + </para> + </note> + <para> + Vea tambi&eacute;n <function>define_syslog_variables</function>, + <function>syslog</function> y <function>closelog</function>. + </para> </refsect1> </refentry> http://cvs.php.net/viewcvs.cgi/phpdoc-es/reference/network/functions/pfsockopen.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc-es/reference/network/functions/pfsockopen.xml diff -u phpdoc-es/reference/network/functions/pfsockopen.xml:1.1 phpdoc-es/reference/network/functions/pfsockopen.xml:1.2 --- phpdoc-es/reference/network/functions/pfsockopen.xml:1.1 Mon Apr 15 00:16:52 2002 +++ phpdoc-es/reference/network/functions/pfsockopen.xml Wed Jan 25 05:42:26 2006 @@ -1,26 +1,32 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/network.xml, last change in rev 1.1 --> -<!-- last change to 'pfsockopen' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.6 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/network.xml, last change in rev 1.2 --> <refentry id="function.pfsockopen"> <refnamediv> <refname>pfsockopen</refname> - <refpurpose>Abre conexiones persistentes de dominio Internet o Unix.</refpurpose> + <refpurpose> + Abrir una conexi&oacute;n persistente de sockets de Internet o + dominio Unix + </refpurpose> </refnamediv> <refsect1> <title>Descripci&oacute;n</title> <methodsynopsis> - <type>int</type><methodname>pfsockopen</methodname> - <methodparam><type>string</type><parameter>hostname</parameter></methodparam> - <methodparam><type>int</type><parameter>port</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>errno</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>errstr</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>timeout</parameter></methodparam> + <type>resource</type><methodname>pfsockopen</methodname> + <methodparam><type>string</type><parameter>nombre_host</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>puerto</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter role="reference">errno</parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter role="reference">errstr</parameter></methodparam> + <methodparam choice="opt"><type>float</type><parameter>tiempo_espera</parameter></methodparam> </methodsynopsis> - <para> - Esta funci&oacute;n se comporta exactamente como <function>fsockopen</function> con la - diferencia que la conexion no se cierra despu&eacute;s de que termine el script. - Esta es la versi&oacute;n persistente de <function>fsockopen</function>.</para> + Esta funci&oacute;n se comporta exactamente como + <function>fsockopen</function>, con la diferencia de que la + conexi&oacute;n no es cerrada despu&eacute;s de que el script + finaliza. Es la versi&oacute;n persistente de + <function>fsockopen</function>. + </para> </refsect1> </refentry> http://cvs.php.net/viewcvs.cgi/phpdoc-es/reference/network/functions/syslog.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc-es/reference/network/functions/syslog.xml diff -u phpdoc-es/reference/network/functions/syslog.xml:1.1 phpdoc-es/reference/network/functions/syslog.xml:1.2 --- phpdoc-es/reference/network/functions/syslog.xml:1.1 Mon Apr 15 00:16:52 2002 +++ phpdoc-es/reference/network/functions/syslog.xml Wed Jan 25 05:42:26 2006 @@ -1,33 +1,133 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/network.xml, last change in rev 1.1 --> -<!-- last change to 'syslog' in en/ tree in rev 1.9 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.7 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/network.xml, last change in rev 1.9 --> <refentry id="function.syslog"> <refnamediv> <refname>syslog</refname> - <refpurpose>genera un mensaje de sistema</refpurpose> + <refpurpose>Generar un mensaje de registro de sistema</refpurpose> </refnamediv> <refsect1> <title>Descripci&oacute;n</title> <methodsynopsis> - <type>int</type><methodname>syslog</methodname> - <methodparam><type>int</type><parameter>priority</parameter></methodparam> - <methodparam><type>string</type><parameter>message</parameter></methodparam> + <type>bool</type><methodname>syslog</methodname> + <methodparam><type>int</type><parameter>prioridad</parameter></methodparam> + <methodparam><type>string</type><parameter>mensaje</parameter></methodparam> </methodsynopsis> <para> - <function>syslog</function> genera un mensaje que ser&aacute; distribuido por - el logger del sistema. - <parameter>priority</parameter> es una combinaci&oacute;n de la facility - y el level, los valores se indicar&aacute;n en la secci&oacute;n siguiente. - El argumento restante es el mensaje a enviar, excepto que los - dos caracteres <literal>%m</literal> sean reemplazados por la - cadena de error (strerror) correspondiente al valor actual de - <errortype>errno</errortype>.</para> + <function>syslog</function> genera un mensaje de registro que + ser&aacute; distribuido por el registro del + sistema. <parameter>prioridad</parameter> es una + combinaci&oacute;n del recurso y el nivel, cuyos valores son + dados en la siguiente secci&oacute;n. El argumento restante es el + mensaje a enviar, excepto que los dos caracteres + <literal>%m</literal> ser&aacute;n reemplazados por la cadena del + mensaje de error (strerror) correspondiente al valor presente de + <errortype>errno</errortype>. + </para> <para> - M&aacute;s informaci&oacute;n acerca de syslog se puede encontrar en las - p&aacute;ginas del manual en equipos Unix.</para> + <table> + <title>Prioridades de <function>syslog</function> (en orden + descendiente)</title> + <tgroup cols="2"> + <thead> + <row> + <entry>Constante</entry> + <entry>Descripci&oacute;n</entry> + </row> + </thead> + <tbody> + <row> + <entry>LOG_EMERG</entry> + <entry>el sistema es inutilizable</entry> + </row> + <row> + <entry>LOG_ALERT</entry> + <entry>debe tomarse una acci&oacute;n inmediatamente</entry> + </row> + <row> + <entry>LOG_CRIT</entry> + <entry>condiciones cr&iacute;ticas</entry> + </row> + <row> + <entry>LOG_ERR</entry> + <entry>condiciones de error</entry> + </row> + <row> + <entry>LOG_WARNING</entry> + <entry>condiciones de advertencia</entry> + </row> + <row> + <entry>LOG_NOTICE</entry> + <entry>condici&oacute;n normal, pero significativa</entry> + </row> + <row> + <entry>LOG_INFO</entry> + <entry>mensaje informativo</entry> + </row> + <row> + <entry>LOG_DEBUG</entry> + <entry>mensaje de nivel de depuraci&oacute;n</entry> + </row> + </tbody> + </tgroup> + </table> + </para> <para> - En Windows NT, el servicio syslog es emulado usando el - Log de Eventos.</para> + <example> + <title>Uso de <function>syslog</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +definir_variables_syslog(); +// abrir syslog, incluir el ID de proceso y enviar +// el registro a la salida de error estandar, usar +// tambien un mecanismo de registro definido por el +// usuario +openlog("registroDeMiScript", LOG_PID | LOG_PERROR, LOG_LOCAL0); + +// codigo cualquiera + +if (cliente_autorizado()) { + // hacer algo +} else { + // cliente no autorizado! + // registrar el intento + $acceso = date("Y/m/d H:i:s"); + syslog(LOG_WARNING, "Cliente no autorizado: $acceso $_SERVER[REMOTE_ADDR] ($_SERVER[HTTP_USER_AGENT])"); +} + +closelog(); +?> +]]> + </programlisting> + </example> + Informaci&oacute;n sobre la forma de preparar un gestor de + registro definido por el usuario puede encontrarse en la + p&aacute;gina de manual Unix para + <citerefentry><refentrytitle>syslog.conf</refentrytitle> + <manvolnum>5</manvolnum></citerefentry>. M&aacute;s + informaci&oacute;n sobre los recursos y opciones de syslog puede + encontrarse en las p&aacute;ginas man para + <citerefentry><refentrytitle>syslog</refentrytitle> + <manvolnum>3</manvolnum></citerefentry> en m&aacute;quinas Unix. + </para> + <para> + En Windows NT, el servicio syslog es emulado usando el Registro + de Eventos. + </para> + <note> + <para> + El uso de los valores <literal>LOG_LOCAL0</literal> a + <literal>LOG_LOCAL7</literal> para el par&aacute;metro + <parameter>recurso</parameter> de <function>openlog</function> + no est&aacute; disponible en Windows. + </para> + </note> + <para> + Vea tambi&eacute;n <function>define_syslog_variables</function>, + <function>openlog</function> y <function>closelog</function>. + </para> </refsect1> </refentry> http://cvs.php.net/viewcvs.cgi/phpdoc-es/reference/oci8/reference.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc-es/reference/oci8/reference.xml diff -u phpdoc-es/reference/oci8/reference.xml:1.5 phpdoc-es/reference/oci8/reference.xml:1.6 --- phpdoc-es/reference/oci8/reference.xml:1.5 Mon Sep 19 23:14:23 2005 +++ phpdoc-es/reference/oci8/reference.xml Wed Jan 25 05:42:26 2006 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.17 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.18 Maintainer: lboshell Status: ready --> <!-- Purpose: database.vendors --> <!-- Membership: bundled, external --> @@ -25,18 +25,21 @@ &reftitle.required; <para> Es necesario contar con las bibliotecas de cliente Oracle para - usar esta extensi&oacute;n. Los usuarios de Windows necesitan por - lo menos la versi&oacute;n 8.1 de Oracle para usar - <filename>php_oci8.dll</filename>. + usar esta extensi&oacute;n. Los usuarios de Windows + necesitar&aacute;n bibliotecas con una versi&oacute;n de al menos + 10 para usar <filename>php_oci8.dll</filename>. </para> <para> La forma m&aacute;s conveniente de instalar todos los archivos requeridos es usar el Cliente Instant&aacute;neo de Oracle, que est&aacute; disponible en: <ulink - url="&url.oracle.instant.client;">&url.oracle.instant.client;</ulink>. El - Cliente Instant&aacute;neo no necesita que est&eacute;n definidas - las variables de entorno ORACLE_SID o ORACLE_HOME. Sin embargo, - puede que aun necesite definir LD_LIBRARY_PATH y NLS_LANG. + url="&url.oracle.instant.client;">&url.oracle.instant.client;</ulink>. Para + trabajar con el m&oacute;dulo OCI8, la versi&oacute;n + "b&aacute;sica" del Cliente Instant&aacute;neo de Oracle es + suficiente. El Cliente Instant&aacute;neo no necesita que + est&eacute;n definidas las variables de entorno ORACLE_SID o + ORACLE_HOME. Sin embargo, puede que aun necesite definir + LD_LIBRARY_PATH y NLS_LANG. </para> <para> Antes de usar esta extensi&oacute;n, aseg&uacute;rese de haber
« previous php.doc.es (#1299) next »