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: | Leonardo Boshell | 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ásico de asignación, - existen "operadores combinados" para todas las operaciones - de <link linkend="language.operators">aritmética - binaria</link> y de cadenas, que le permiten usar un valor en una - expresión y luego definir su valor como el resultado de esa - expresión. Por ejemplo: + existen "operadores combinados" para todos los operadores de <link + linkend="language.operators">aritmética binaria</link>, + unión de matrices y de cadenas, que le permiten usar un + valor en una expresión y luego definir su valor como el + resultado de esa expresió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álido únicamente en sistemas que soportan el - tipo st_blksize--los demás sistemas (como Windows) + * Válido únicamente en sistemas que soportan el + tipo st_blksize - los demá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ío de grandes cantidades de correo electró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áquina en Internet mediante su - dirección IP.</refpurpose> + <refpurpose> + Obtener el nombre del host de Internet correspondiente a una + dirección IP dada + </refpurpose> </refnamediv> <refsect1> <title>Descripció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ámetro <parameter>ip_address</parameter>. - Si ocurre un error, devuelve <parameter>ip_address</parameter>.</para> - - <para> - Ver tambié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ó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é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ón IP correspondiente al nombre de una - máquina conectada a Internet.</refpurpose> + <refpurpose> + Obtener la dirección IP correspondiente a un nombre de + host de Internet dado + </refpurpose> </refnamediv> <refsect1> <title>Descripció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ón IP de una máquina conectada a Internet - especificada por <parameter>hostname</parameter>.</para> - - <para> - Ver también <function>gethostbyaddr</function>.</para> + Devuelve la direcció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ó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é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á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ó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á: + </para> + <screen> +<![CDATA[ +Array +( + [0] => 192.0.34.166 +) +]]> + </screen> + </example> <para> - Ver también - <function>gethostbyname</function>, - <function>gethostbyaddr</function>, - <function>checkdnsrr</function>, - <function>getmxrr</function>, y - named(8) en las páginas del manual.</para> - + Vea también <function>gethostbyname</function>, + <function>gethostbyaddr</function>, + <function>checkdnsrr</function>, <function>getmxrr</function>, y + la pá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áquina - conectada a Internet. + <refpurpose> + Obtener los registros MX correspondientes a un nombre de host de + Internet dado </refpurpose> </refnamediv> <refsect1> <title>Descripció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á con la informació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á llenada con + la información de peso recolectada. + </simpara> + <para> + <note> + <simpara> + Esta función no debe ser usada para propósitos de + verificació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ía ser + usado como el único punto de intercambio de correo con + una prioridad de <literal>0</literal>. + </simpara> + </note> + </para> + <para> + <note> + <simpara> + Esta funció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én - <function>checkdnsrr</function>, + Vea también <function>checkdnsrr</function>, + <function>dns_get_record</function>, <function>gethostbyname</function>, <function>gethostbynamel</function>, - <function>gethostbyaddr</function>, y - named(8) de las páginas del manual.</simpara> - + <function>gethostbyaddr</function>, y la pá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úmero de puerto asociado con un servicio y + protocolo de Internet + </refpurpose> </refnamediv> <refsect1> <title>Descripció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é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ú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úmeros de puerto vea: + &url.network.port-numbers;. + </para> + <para> + Vea tambié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ó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é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úsculas). + </para> + <para> + Vea tambié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ón con el logger del sistema</refpurpose> + <refpurpose>Abrir una conexión con el registro del + sistema</refpurpose> </refnamediv> <refsect1> <title>Descripció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ó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ón. El uso de openlog() is opcional; Esta será llamada automaticamente - por <function>syslog</function> si fuera necesario, en este caso - <parameter>ident</parameter> valdrá por defecto &false;. - - Ver también <function>syslog</function> y - <function>closelog</function>.</para> + <function>openlog</function> abre una conexió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ás adelante. El + argumento <parameter>opcion</parameter> es usado para indicar + qué opciones de registro serán usadas cuando se + genere un mensaje de registro. El argumento + <parameter>recurso</parameter> es usado para especificar + qué tipo de programa está registrando el + mensaje. Esto le permite especificar (en la configuración + de syslog de su máquina) cómo serán + manejados los mensajes provenientes de diferentes recursos. El + uso de <function>openlog</function> es opcional. La + función será llamada automáticamente por + <function>syslog</function> si es necesario, en cuyo caso el + valor predeterminado para <parameter>id</parameter> + será &false;. + </para> + <para> + <table> + <title>Opciones de <function>openlog</function></title> + <tgroup cols="2"> + <thead> + <row> + <entry>Constante</entry> + <entry>Descripción</entry> + </row> + </thead> + <tbody> + <row> + <entry>LOG_CONS</entry> + <entry> + si hay un error mientras se envían datos al registro + del sistema, escribirlos directamente a la consola del + sistema + </entry> + </row> + <row> + <entry>LOG_NDELAY</entry> + <entry> + abrir la conexión con el registro inmediatamente + </entry> + </row> + <row> + <entry>LOG_ODELAY</entry> + <entry> + (predeterminado) retrasar la apertura de la conexió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ándar tambié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ás de estas opciones. Cuando se + usen múltiples opciones, es necesario combinarlas mediante + la operación <literal>OR</literal>, es decir, para abrir + la conexión inmediatamente, escribir a la consola e + incluir el PID en cada mensaje, se deberá 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ón</entry> + </row> + </thead> + <tbody> + <row> + <entry>LOG_AUTH</entry> + <entry> + mensajes de seguridad/autorización (use LOG_AUTHPRIV + en su lugar en sistemas en donde ésta última + esté definida) + </entry> + </row> + <row> + <entry>LOG_AUTHPRIV</entry> + <entry>mensajes de seguridad/autorizació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úcleo</entry> + </row> + <row> + <entry>LOG_LOCAL0 ... LOG_LOCAL7</entry> + <entry>reservados para uso local, no están disponibles + en Windows</entry> + </row> + <row> + <entry>LOG_LPR</entry> + <entry>subsistema de impresora de lí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é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 único tipo de registro + válido bajo sistemas operativos Windows + </para> + </note> + <para> + Vea tambié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ón persistente de sockets de Internet o + dominio Unix + </refpurpose> </refnamediv> <refsect1> <title>Descripció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ón se comporta exactamente como <function>fsockopen</function> con la - diferencia que la conexion no se cierra después de que termine el script. - Esta es la versión persistente de <function>fsockopen</function>.</para> + Esta función se comporta exactamente como + <function>fsockopen</function>, con la diferencia de que la + conexión no es cerrada después de que el script + finaliza. Es la versió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ó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á distribuido por - el logger del sistema. - <parameter>priority</parameter> es una combinación de la facility - y el level, los valores se indicarán en la secció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á distribuido por el registro del + sistema. <parameter>prioridad</parameter> es una + combinación del recurso y el nivel, cuyos valores son + dados en la siguiente sección. El argumento restante es el + mensaje a enviar, excepto que los dos caracteres + <literal>%m</literal> serán reemplazados por la cadena del + mensaje de error (strerror) correspondiente al valor presente de + <errortype>errno</errortype>. + </para> <para> - Más información acerca de syslog se puede encontrar en las - pá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ó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ón inmediatamente</entry> + </row> + <row> + <entry>LOG_CRIT</entry> + <entry>condiciones crí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ó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ó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ón sobre la forma de preparar un gestor de + registro definido por el usuario puede encontrarse en la + página de manual Unix para + <citerefentry><refentrytitle>syslog.conf</refentrytitle> + <manvolnum>5</manvolnum></citerefentry>. Más + información sobre los recursos y opciones de syslog puede + encontrarse en las páginas man para + <citerefentry><refentrytitle>syslog</refentrytitle> + <manvolnum>3</manvolnum></citerefentry> en má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ámetro + <parameter>recurso</parameter> de <function>openlog</function> + no está disponible en Windows. + </para> + </note> + <para> + Vea tambié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ón. Los usuarios de Windows necesitan por - lo menos la versión 8.1 de Oracle para usar - <filename>php_oci8.dll</filename>. + usar esta extensión. Los usuarios de Windows + necesitarán bibliotecas con una versión de al menos + 10 para usar <filename>php_oci8.dll</filename>. </para> <para> La forma más conveniente de instalar todos los archivos requeridos es usar el Cliente Instantáneo de Oracle, que está disponible en: <ulink - url="&url.oracle.instant.client;">&url.oracle.instant.client;</ulink>. El - Cliente Instantáneo no necesita que esté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ódulo OCI8, la versión + "básica" del Cliente Instantáneo de Oracle es + suficiente. El Cliente Instantáneo no necesita que + esté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ón, asegúrese de haber
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ásico de asignación, - existen "operadores combinados" para todas las operaciones - de <link linkend="language.operators">aritmética - binaria</link> y de cadenas, que le permiten usar un valor en una - expresión y luego definir su valor como el resultado de esa - expresión. Por ejemplo: + existen "operadores combinados" para todos los operadores de <link + linkend="language.operators">aritmética binaria</link>, + unión de matrices y de cadenas, que le permiten usar un + valor en una expresión y luego definir su valor como el + resultado de esa expresió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álido únicamente en sistemas que soportan el - tipo st_blksize--los demás sistemas (como Windows) + * Válido únicamente en sistemas que soportan el + tipo st_blksize - los demá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ío de grandes cantidades de correo electró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áquina en Internet mediante su - dirección IP.</refpurpose> + <refpurpose> + Obtener el nombre del host de Internet correspondiente a una + dirección IP dada + </refpurpose> </refnamediv> <refsect1> <title>Descripció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ámetro <parameter>ip_address</parameter>. - Si ocurre un error, devuelve <parameter>ip_address</parameter>.</para> - - <para> - Ver tambié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ó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é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ón IP correspondiente al nombre de una - máquina conectada a Internet.</refpurpose> + <refpurpose> + Obtener la dirección IP correspondiente a un nombre de + host de Internet dado + </refpurpose> </refnamediv> <refsect1> <title>Descripció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ón IP de una máquina conectada a Internet - especificada por <parameter>hostname</parameter>.</para> - - <para> - Ver también <function>gethostbyaddr</function>.</para> + Devuelve la direcció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ó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é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á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ó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á: + </para> + <screen> +<![CDATA[ +Array +( + [0] => 192.0.34.166 +) +]]> + </screen> + </example> <para> - Ver también - <function>gethostbyname</function>, - <function>gethostbyaddr</function>, - <function>checkdnsrr</function>, - <function>getmxrr</function>, y - named(8) en las páginas del manual.</para> - + Vea también <function>gethostbyname</function>, + <function>gethostbyaddr</function>, + <function>checkdnsrr</function>, <function>getmxrr</function>, y + la pá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áquina - conectada a Internet. + <refpurpose> + Obtener los registros MX correspondientes a un nombre de host de + Internet dado </refpurpose> </refnamediv> <refsect1> <title>Descripció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á con la informació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á llenada con + la información de peso recolectada. + </simpara> + <para> + <note> + <simpara> + Esta función no debe ser usada para propósitos de + verificació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ía ser + usado como el único punto de intercambio de correo con + una prioridad de <literal>0</literal>. + </simpara> + </note> + </para> + <para> + <note> + <simpara> + Esta funció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én - <function>checkdnsrr</function>, + Vea también <function>checkdnsrr</function>, + <function>dns_get_record</function>, <function>gethostbyname</function>, <function>gethostbynamel</function>, - <function>gethostbyaddr</function>, y - named(8) de las páginas del manual.</simpara> - + <function>gethostbyaddr</function>, y la pá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úmero de puerto asociado con un servicio y + protocolo de Internet + </refpurpose> </refnamediv> <refsect1> <title>Descripció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é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ú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úmeros de puerto vea: + &url.network.port-numbers;. + </para> + <para> + Vea tambié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ó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é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úsculas). + </para> + <para> + Vea tambié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ón con el logger del sistema</refpurpose> + <refpurpose>Abrir una conexión con el registro del + sistema</refpurpose> </refnamediv> <refsect1> <title>Descripció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ó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ón. El uso de openlog() is opcional; Esta será llamada automaticamente - por <function>syslog</function> si fuera necesario, en este caso - <parameter>ident</parameter> valdrá por defecto &false;. - - Ver también <function>syslog</function> y - <function>closelog</function>.</para> + <function>openlog</function> abre una conexió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ás adelante. El + argumento <parameter>opcion</parameter> es usado para indicar + qué opciones de registro serán usadas cuando se + genere un mensaje de registro. El argumento + <parameter>recurso</parameter> es usado para especificar + qué tipo de programa está registrando el + mensaje. Esto le permite especificar (en la configuración + de syslog de su máquina) cómo serán + manejados los mensajes provenientes de diferentes recursos. El + uso de <function>openlog</function> es opcional. La + función será llamada automáticamente por + <function>syslog</function> si es necesario, en cuyo caso el + valor predeterminado para <parameter>id</parameter> + será &false;. + </para> + <para> + <table> + <title>Opciones de <function>openlog</function></title> + <tgroup cols="2"> + <thead> + <row> + <entry>Constante</entry> + <entry>Descripción</entry> + </row> + </thead> + <tbody> + <row> + <entry>LOG_CONS</entry> + <entry> + si hay un error mientras se envían datos al registro + del sistema, escribirlos directamente a la consola del + sistema + </entry> + </row> + <row> + <entry>LOG_NDELAY</entry> + <entry> + abrir la conexión con el registro inmediatamente + </entry> + </row> + <row> + <entry>LOG_ODELAY</entry> + <entry> + (predeterminado) retrasar la apertura de la conexió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ándar tambié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ás de estas opciones. Cuando se + usen múltiples opciones, es necesario combinarlas mediante + la operación <literal>OR</literal>, es decir, para abrir + la conexión inmediatamente, escribir a la consola e + incluir el PID en cada mensaje, se deberá 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ón</entry> + </row> + </thead> + <tbody> + <row> + <entry>LOG_AUTH</entry> + <entry> + mensajes de seguridad/autorización (use LOG_AUTHPRIV + en su lugar en sistemas en donde ésta última + esté definida) + </entry> + </row> + <row> + <entry>LOG_AUTHPRIV</entry> + <entry>mensajes de seguridad/autorizació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úcleo</entry> + </row> + <row> + <entry>LOG_LOCAL0 ... LOG_LOCAL7</entry> + <entry>reservados para uso local, no están disponibles + en Windows</entry> + </row> + <row> + <entry>LOG_LPR</entry> + <entry>subsistema de impresora de lí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é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 único tipo de registro + válido bajo sistemas operativos Windows + </para> + </note> + <para> + Vea tambié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ón persistente de sockets de Internet o + dominio Unix + </refpurpose> </refnamediv> <refsect1> <title>Descripció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ón se comporta exactamente como <function>fsockopen</function> con la - diferencia que la conexion no se cierra después de que termine el script. - Esta es la versión persistente de <function>fsockopen</function>.</para> + Esta función se comporta exactamente como + <function>fsockopen</function>, con la diferencia de que la + conexión no es cerrada después de que el script + finaliza. Es la versió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ó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á distribuido por - el logger del sistema. - <parameter>priority</parameter> es una combinación de la facility - y el level, los valores se indicarán en la secció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á distribuido por el registro del + sistema. <parameter>prioridad</parameter> es una + combinación del recurso y el nivel, cuyos valores son + dados en la siguiente sección. El argumento restante es el + mensaje a enviar, excepto que los dos caracteres + <literal>%m</literal> serán reemplazados por la cadena del + mensaje de error (strerror) correspondiente al valor presente de + <errortype>errno</errortype>. + </para> <para> - Más información acerca de syslog se puede encontrar en las - pá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ó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ón inmediatamente</entry> + </row> + <row> + <entry>LOG_CRIT</entry> + <entry>condiciones crí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ó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ó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ón sobre la forma de preparar un gestor de + registro definido por el usuario puede encontrarse en la + página de manual Unix para + <citerefentry><refentrytitle>syslog.conf</refentrytitle> + <manvolnum>5</manvolnum></citerefentry>. Más + información sobre los recursos y opciones de syslog puede + encontrarse en las páginas man para + <citerefentry><refentrytitle>syslog</refentrytitle> + <manvolnum>3</manvolnum></citerefentry> en má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ámetro + <parameter>recurso</parameter> de <function>openlog</function> + no está disponible en Windows. + </para> + </note> + <para> + Vea tambié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ón. Los usuarios de Windows necesitan por - lo menos la versión 8.1 de Oracle para usar - <filename>php_oci8.dll</filename>. + usar esta extensión. Los usuarios de Windows + necesitarán bibliotecas con una versión de al menos + 10 para usar <filename>php_oci8.dll</filename>. </para> <para> La forma más conveniente de instalar todos los archivos requeridos es usar el Cliente Instantáneo de Oracle, que está disponible en: <ulink - url="&url.oracle.instant.client;">&url.oracle.instant.client;</ulink>. El - Cliente Instantáneo no necesita que esté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ódulo OCI8, la versión + "básica" del Cliente Instantáneo de Oracle es + suficiente. El Cliente Instantáneo no necesita que + esté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ón, asegúrese de haber