cvs: phpdoc-es /faq installation.xml obtaining.xml /reference/dir/functions getcwd.xml /reference/errorfunc constants.xml /reference/exec/functions
system.xml /reference/info ini.xml /reference/info/functions dl.xml /reference/ldap/functions ldap-list.xml /reference/math reference.xml
/reference/misc/functions highlight-file.xml /reference/session ini.xml /reference/stream/functions stream-socket-server.xml
/reference/url/functions http-build-query.xml
| From: | Leonardo Boshell | Date: | Tue, 17 Feb 2004 20:05:40 +0000 |
| Subject: | cvs: phpdoc-es /faq installation.xml obtaining.xml /reference/dir/functions getcwd.xml /reference/errorfunc constants.xml /reference/exec/functions system.xml /reference/info ini.xml /reference/info/functions dl.xml /reference/ldap/functions ldap-list.xml /reference/math reference.xml /reference/misc/functions highlight-file.xml /reference/session ini.xml /reference/stream/functions stream-socket-server.xml /reference/url/functions http-build-query.xml |
||
| Groups: | php.doc.es | ||
| Request: | Send a blank email to doc-es+get-503@lists.php.net to get a copy of this message | ||
lboshell Tue Feb 17 15:05:40 2004 EDT
Modified files:
/phpdoc-es/faq installation.xml obtaining.xml
/phpdoc-es/reference/dir/functions getcwd.xml
/phpdoc-es/reference/errorfunc constants.xml
/phpdoc-es/reference/exec/functions system.xml
/phpdoc-es/reference/info ini.xml
/phpdoc-es/reference/info/functions dl.xml
/phpdoc-es/reference/ldap/functions ldap-list.xml
/phpdoc-es/reference/math reference.xml
/phpdoc-es/reference/misc/functions highlight-file.xml
/phpdoc-es/reference/session ini.xml
/phpdoc-es/reference/stream/functions stream-socket-server.xml
/phpdoc-es/reference/url/functions http-build-query.xml
Log:
Actualizaciones y correcciones.
http://cvs.php.net/diff.php/phpdoc-es/faq/installation.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-es/faq/installation.xml diff -u phpdoc-es/faq/installation.xml:1.4 phpdoc-es/faq/installation.xml:1.5 --- phpdoc-es/faq/installation.xml:1.4 Fri Jan 16 01:56:35 2004 +++ phpdoc-es/faq/installation.xml Tue Feb 17 15:05:33 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.26 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.27 Maintainer: lboshell Status: ready --> <chapter id="faq.installation"> <title>Instalación</title> <titleabbrev>Instalación</titleabbrev> @@ -38,7 +38,7 @@ valor en tiempo de compilación con la bandera <link linkend="install.configure.with-config-file-path">--with-config-file-path</link>. Podría, por ejemplo, definirla como: - <programlisting> + <programlisting role="shell"> --with-config-file-path=/etc </programlisting> Y luego copiaría <filename>php.ini-dist</filename> desde @@ -46,7 +46,7 @@ editaría para hacer cualquier modificación local que desee. </para> - <programlisting> + <programlisting role="shell"> --with-config-file-scan-dir=PATH </programlisting> <para> @@ -161,22 +161,26 @@ RPM, necesita remover los caracteres de comentario, o agregar algunas o todas de las siguientes líneas en su archivo &httpd.conf;: - <programlisting> -# Extra Modules + <programlisting role="apache-conf"> +<![CDATA[ +# Modulos Extra AddModule mod_php.c AddModule mod_php3.c AddModule mod_perl.c -# Extra Modules +# Modulos Extra LoadModule php_module modules/mod_php.so -LoadModule php3_module modules/libphp3.so /* para PHP 3 */ -LoadModule php4_module modules/libphp4.so /* para PHP 4 */ +LoadModule php3_module modules/libphp3.so # para PHP 3 +LoadModule php4_module modules/libphp4.so # para PHP 4 LoadModule perl_module modules/libperl.so +]]> </programlisting> Y agregar: - <programlisting> -AddType application/x-httpd-php3 .php3 /* para PHP 3 */ -AddType application/x-httpd-php .php /* para PHP 4 */ + <programlisting role="apache-conf"> +<![CDATA[ +AddType application/x-httpd-php3 .php3 # para PHP 3 +AddType application/x-httpd-php .php # para PHP 4 +]]> </programlisting> ... a las propiedades globales, o a las propiedades del VirtualDomain para el cual desea tener soporte de PHP. @@ -225,7 +229,7 @@ <listitem> <para> Primero remueva mod_php3 : - <programlisting> + <programlisting role="shell"> rpm -e mod_php3 </programlisting> </para> @@ -234,7 +238,7 @@ <para> Luego obtenga el rpm fuente e INSTÁLELO, NO use --rebuild - <programlisting> + <programlisting role="shell"> rpm -Uvh mod_php3-3.0.5-2.src.rpm </programlisting> </para> @@ -250,11 +254,11 @@ </para> <para> Para MySQL, usted agregaría - <programlisting> + <programlisting role="shell"> --with-mysql=/usr \ </programlisting> La sección %build se verá algo como: - <programlisting> + <programlisting role="shell"> ./configure --prefix=/usr \ --with-apxs=/usr/sbin/apxs \ --with-config-file-path=/usr/lib \ @@ -270,7 +274,7 @@ <para> Una vez está hecha esta modificación, compile el rpm binario de este modo: - <programlisting> + <programlisting role="shell"> rpm -bb /usr/src/redhat/SPECS/mod_php3.spec </programlisting> </para> @@ -278,7 +282,7 @@ <listitem> <para> Luego instale el rpm - <programlisting> + <programlisting role="shell"> rpm -ivh /usr/src/redhat/RPMS/i386/mod_php3-3.0.5-2.i386.rpm </programlisting> </para> @@ -369,7 +373,7 @@ Algunos sistemas operativos: He instalado PHP sin errores, pero cuando intento iniciar apache, recibo errores de símbolos indefinidos: - <programlisting> + <programlisting role="shell"> [mi_maquina:usuario /src/php4] root# apachectl configtest apachectl: /usr/local/apache/bin/httpd Undefined symbols: _compress @@ -392,12 +396,12 @@ <para> Windows: He instalado PHP, pero cuando intento acceder a un script PHP a través de mi navegador, recibo el error: - <programlisting> + <screen> cgi error: The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: - </programlisting> + </screen> </para> </question> <answer> http://cvs.php.net/diff.php/phpdoc-es/faq/obtaining.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/faq/obtaining.xml diff -u phpdoc-es/faq/obtaining.xml:1.2 phpdoc-es/faq/obtaining.xml:1.3 --- phpdoc-es/faq/obtaining.xml:1.2 Tue Jan 20 22:34:32 2004 +++ phpdoc-es/faq/obtaining.xml Tue Feb 17 15:05:33 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.16 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.17 Maintainer: lboshell Status: ready --> <chapter id="faq.obtaining"> <title>Obtención de PHP</title> <titleabbrev>Obtención de PHP</titleabbrev> @@ -101,7 +101,7 @@ </listitem> <listitem> <simpara> - <ulink url="&url.ucd-snmp;">SNMP* (Unix): </ulink>. + <ulink url="&url.net-snmp;">SNMP* (Unix): </ulink>. </simpara> </listitem> <listitem> http://cvs.php.net/diff.php/phpdoc-es/reference/dir/functions/getcwd.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/dir/functions/getcwd.xml diff -u phpdoc-es/reference/dir/functions/getcwd.xml:1.2 phpdoc-es/reference/dir/functions/getcwd.xml:1.3 --- phpdoc-es/reference/dir/functions/getcwd.xml:1.2 Thu Dec 18 20:59:12 2003 +++ phpdoc-es/reference/dir/functions/getcwd.xml Tue Feb 17 15:05:33 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.4 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.5 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/dir.xml, last change in rev 1.7 --> <refentry id="function.getcwd"> <refnamediv> @@ -35,7 +35,7 @@ ]]> </programlisting> <para> - Este ejemplo producirá la salida: + Este ejemplo producirá una salida similar a: </para> <screen> <![CDATA[ http://cvs.php.net/diff.php/phpdoc-es/reference/errorfunc/constants.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-es/reference/errorfunc/constants.xml diff -u phpdoc-es/reference/errorfunc/constants.xml:1.5 phpdoc-es/reference/errorfunc/constants.xml:1.6 --- phpdoc-es/reference/errorfunc/constants.xml:1.5 Fri Jan 16 17:59:15 2004 +++ phpdoc-es/reference/errorfunc/constants.xml Tue Feb 17 15:05:34 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.11 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.12 Maintainer: lboshell Status: ready --> <section id="errorfunc.constants"> &reftitle.constants; &extension.constants.core; @@ -222,7 +222,7 @@ <link linkend="language.operators.bitwise">operadores bit a bit</link> para combinar estos valores o excluir explícitamente ciertos tipos de errores. Sin embargo, note - que únicamente '|', '~', '!', ^ y '&' serán + que únicamente '|', '~', '!', '^' y '&' serán entendidos desde &php.ini;, y que ningún operador bit a bit será interpretado correctamente desde <filename>php3.ini</filename>. http://cvs.php.net/diff.php/phpdoc-es/reference/exec/functions/system.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/exec/functions/system.xml diff -u phpdoc-es/reference/exec/functions/system.xml:1.2 phpdoc-es/reference/exec/functions/system.xml:1.3 --- phpdoc-es/reference/exec/functions/system.xml:1.2 Tue Jan 20 22:34:35 2004 +++ phpdoc-es/reference/exec/functions/system.xml Tue Feb 17 15:05:35 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.6 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.7 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/exec.xml, last change in rev 1.24 --> <refentry id="function.system"> <refnamediv> @@ -92,6 +92,7 @@ ejecutable. </simpara> </note> + &warn.sm.exec; <para> Vea también <function>exec</function>, <function>passthru</function>, <function>popen</function>, http://cvs.php.net/diff.php/phpdoc-es/reference/info/ini.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/info/ini.xml diff -u phpdoc-es/reference/info/ini.xml:1.1 phpdoc-es/reference/info/ini.xml:1.2 --- phpdoc-es/reference/info/ini.xml:1.1 Mon Dec 1 20:52:27 2003 +++ phpdoc-es/reference/info/ini.xml Tue Feb 17 15:05:35 2004 @@ -1,12 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.7 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.8 Maintainer: lboshell Status: ready --> <section id="info.configuration"> &reftitle.runtime; &extension.runtime; <para> <table> - <title>Opciones de Configuración del sistema de información PHP</title> + <title>Opciones de Configuración del sistema de + información PHP</title> <tgroup cols="3"> <thead> <row> @@ -52,6 +53,11 @@ <entry>PHP_INI_ALL</entry> </row> <row> + <entry>max_input_time</entry> + <entry>"60"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> <entry>magic_quotes_gpc</entry> <entry>"1"</entry> <entry>PHP_INI_PERDIR|PHP_INI_SYSTEM</entry> @@ -179,8 +185,7 @@ </para> <para> El tiempo máximo de ejecución no es afectado por - llamadas del sistema, la - función <function>sleep</function>, etc. Por favor + llamadas del sistema, operaciones de secuencias etc. Por favor consulte la función <function>set_time_limit</function> para más detalles. </para> @@ -194,6 +199,21 @@ </listitem> </varlistentry> + <varlistentry id="ini.max-input-time"> + <term> + <parameter>max_input_time</parameter> + <type>integer</type> + </term> + <listitem> + <para> + Este valor establece el tiempo máximo en segundos con el + que cuenta un script para recibir datos de entrada, como POST, + GET y cargas de archivos. El valor predeterminado + es <literal>60</literal>. + </para> + </listitem> + </varlistentry> + <varlistentry id="ini.magic-quotes-gpc"> <term> <parameter>magic_quotes_gpc</parameter> http://cvs.php.net/diff.php/phpdoc-es/reference/info/functions/dl.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-es/reference/info/functions/dl.xml diff -u phpdoc-es/reference/info/functions/dl.xml:1.4 phpdoc-es/reference/info/functions/dl.xml:1.5 --- phpdoc-es/reference/info/functions/dl.xml:1.4 Mon Dec 22 01:21:40 2003 +++ phpdoc-es/reference/info/functions/dl.xml Tue Feb 17 15:05:36 2004 @@ -1,11 +1,12 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.16 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.18 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/info.xml, last change in rev 1.29 --> <refentry id="function.dl"> <refnamediv> <refname>dl</refname> - <refpurpose>Carga una extensión PHP en tiempo de ejecución</refpurpose> + <refpurpose>Carga una extensión PHP en tiempo de + ejecución</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> @@ -14,33 +15,36 @@ <methodparam><type>string</type><parameter>libreria</parameter></methodparam> </methodsynopsis> <para> -Carga la extensión PHP dada por el -parámetro <parameter>libreria</parameter>. El -parámetro <parameter>libreria</parameter> -es <emphasis>únicamente</emphasis> el nombre de archivo de la -extensión a cargar, el cual también depende de su -plataforma. Por ejemplo, la extensión <link -linkend="ref.sockets">sockets</link> (si fue compilada como -módulo, ¡que no es el comportamiento predeterminado!) -podría llamarse <filename>sockets.so</filename> en plataformas -Unix, mientras que se llama <filename>php_sockets.dll</filename> en la -plataforma windows. - </para> - <para> -&return.success; Si la funcionalidad de carga de módulos no -está disponible (ver Nota) o ha sido deshabilitada (ya sea -mediante la desactivación de <literal>enable_dl</literal> o -activando &safemode; en &php.ini;) un <constant>E_ERROR</constant> es -producido y se detiene la ejecución. Si <function>dl</function> -falla porque la librería especificada no pudo ser cargada, se -emite un mensaje <constant>E_WARNING</constant> en -compañía del &false;. - </para> - <para> -Use <function>extension_loaded</function> para probar si una cierta -extensión ya se encuentra disponible o no. Esto funciona tanto -con extensiones integradas como con las cargadas dinámicamente -(ya sea mediante &php.ini; o <function>dl</function>). + Carga la extensión PHP dada por el + parámetro <parameter>libreria</parameter>. El + parámetro <parameter>libreria</parameter> + es <emphasis>únicamente</emphasis> el nombre de archivo de + la extensión a cargar, el cual también depende de + su plataforma. Por ejemplo, la extensión <link + linkend="ref.sockets">sockets</link> (si fue compilada como + módulo, ¡que no es el comportamiento + predeterminado!) podría + llamarse <filename>sockets.so</filename> en plataformas Unix, + mientras que se llama <filename>php_sockets.dll</filename> en la + plataforma windows. + </para> + <para> + &return.success; Si la funcionalidad de carga de módulos + no está disponible (ver Nota) o ha sido deshabilitada (ya + sea mediante la desactivación + de <literal>enable_dl</literal> o activando &safemode; en + &php.ini;) un <constant>E_ERROR</constant> es producido y se + detiene la ejecución. Si <function>dl</function> falla + porque la librería especificada no pudo ser cargada, se + emite un mensaje <constant>E_WARNING</constant> en + compañía del &false;. + </para> + <para> + Use <function>extension_loaded</function> para probar si una + cierta extensión ya se encuentra disponible o no. Esto + funciona tanto con extensiones integradas como con las cargadas + dinámicamente (ya sea mediante &php.ini; + o <function>dl</function>). </para> <example> <title>Ejemplos de <function>dl</function></title> @@ -67,17 +71,17 @@ </programlisting> </example> <para> -El directorio desde donde es cargada la extensión depende de su -plataforma: + El directorio desde donde es cargada la extensión depende + de su plataforma: </para> <para> -Windows - Si no está definida explícitamente en -&php.ini;, la extensión es cargada -desde <filename>c:\php4\extensions\</filename> por defecto. + Windows - Si no está definida explícitamente en + &php.ini;, la extensión es cargada + desde <filename>c:\php4\extensions\</filename> por defecto. </para> <para> -Unix - Si no está definida explícitamente en &php.ini;, -el directorio de extensiones predeterminado depende de + Unix - Si no está definida explícitamente en + &php.ini;, el directorio de extensiones predeterminado depende de <itemizedlist> <listitem> <simpara> @@ -101,33 +105,37 @@ </simpara> </listitem> </itemizedlist> -Tomando en cuenta lo anterior, el directorio recibe el valor -predeterminado de <literal><dir-instalacion>/lib/php/extensions/ -<debug-o-no>-<zts-o-no>-ZEND_MODULE_API_NO</literal>, -p.ej. -<filename>/usr/local/php/lib/php/extensions/debug-non-zts-20010901</filename> -o <filename>/usr/local/php/lib/php/extensions/no-debug-zts-20010901</filename>. + Tomando en cuenta lo anterior, el directorio recibe el valor + predeterminado + de <literal><dir-instalacion>/lib/php/extensions/ + <debug-o-no>-<zts-o-no>-ZEND_MODULE_API_NO</literal>, + p.ej. + <filename>/usr/local/php/lib/php/extensions/debug-non-zts-20010901</filename> + o <filename>/usr/local/php/lib/php/extensions/no-debug-zts-20010901</filename>. </para> <note> <para> -La función <function>dl</function> <emphasis>no</emphasis> es -soportada en servidores Web multi-hilos. Use la -sentencia <literal>extensions</literal> en su &php.ini; cuando trabaje -sobre ese tipo de entornos. Sin embargo, ¡las -versiones <literal>CGI</literal> y <literal>CLI</literal> <emphasis -role="strong">no</emphasis> son afectadas! + La + función <function>dl</function> <emphasis>no</emphasis> + es soportada en servidores Web multi-hilos. Use la + sentencia <literal>extensions</literal> en su &php.ini; cuando + trabaje sobre ese tipo de entornos. Sin embargo, ¡las + versiones <literal>CGI</literal> + y <literal>CLI</literal> <emphasis role="strong">no</emphasis> + son afectadas! </para> </note> <note> <para> -<function>dl</function> es sensible a mayúsculas y -minúsculas en plataformas Unix. + <function>dl</function> es sensible a mayúsculas y + minúsculas en plataformas Unix. </para> </note> ¬e.sm.disabled; <para> -Vea también <link linkend="ini.extension">Directivas de Carga -de Extensión</link> y <function>extension_loaded</function>. + Vea también <link linkend="ini.extension">Directivas de + Carga de Extensión</link> + y <function>extension_loaded</function>. </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/ldap/functions/ldap-list.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/ldap/functions/ldap-list.xml diff -u phpdoc-es/reference/ldap/functions/ldap-list.xml:1.2 phpdoc-es/reference/ldap/functions/ldap-list.xml:1.3 --- phpdoc-es/reference/ldap/functions/ldap-list.xml:1.2 Tue Jun 24 22:09:39 2003 +++ phpdoc-es/reference/ldap/functions/ldap-list.xml Tue Feb 17 15:05:37 2004 @@ -1,53 +1,84 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/ldap.xml, last change in rev 1.1 --> -<!-- last change to 'ldap-list' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.3 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.2 --> <refentry id="function.ldap-list"> <refnamediv> <refname>ldap_list</refname> - <refpurpose>Búsqueda Single-level (Nivel Único)</refpurpose> + <refpurpose>Búsqueda de nivel único</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> - <type>int</type><methodname>ldap_list</methodname> - <methodparam><type>int</type><parameter>identificador_de_conexion</parameter></methodparam> - <methodparam><type>string</type><parameter>dn_base</parameter></methodparam> - <methodparam><type>string</type><parameter>filtro</parameter></methodparam> - <methodparam choice="opt"><type>array</type><parameter>atributos</parameter></methodparam> + <type>resource</type><methodname>ldap_list</methodname> + <methodparam><type>resource</type><parameter>id_enlace</parameter></methodparam> + <methodparam><type>string</type><parameter>dn_base</parameter></methodparam> + <methodparam><type>string</type><parameter>filtro</parameter></methodparam> + <methodparam choice="opt"><type>array</type><parameter>atributos</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>solo_atribs</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>limite_tamanyo</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>limite_tiempo</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>deref</parameter></methodparam> </methodsynopsis> <para> - Devuelve un identificador de resultado de búsqueda o falso en caso de error.</para> + Devuelve un identificador de resultado de búsqueda, o + &false; en caso de error. + </para> <para> - <function>ldap_list</function> realiza la búsqueda según el filtro - especificado en el directorio con el alcance LDAP_SCOPE_ONELEVEL.</para> + <function>ldap_list</function> realiza la búsqueda de + un <parameter>filtro</parameter> especificado en el directorio + con el contexto LDAP_SCOPE_ONELEVEL. + </para> <para> - LDAP_SCOPE_ONELEVEL significa que la búsqueda solo devuelve - información que se encuentre en el nivel inmediatamente inferior - al dn_base especificado en la llamada a la función. (Equivalente - a ejecutar "ls" en un unix y obtener un listado de ficheros y carpetas - en el directorio de trabajo actual.)</para> + LDAP_SCOPE_ONELEVEL quiere decir que la búsqueda + sólo debe devolver información que se encuentre en + el nivel inmediatamente inferior + al <parameter>dn_base</parameter> especificado en la + llamada. (Equivalente a escribir "ls" y obtener un listado de + archivos y carpetas en el directorio de trabajo actual.) + </para> <para> - Esta llamada toma un cuarto parámetro opcional, que es un array - de los atributos requeridos. Consulte las notas de la función - <function>ldap_search</function>. + Esta llamada recibe 5 parámetros opcionales. Vea las notas + de <function>ldap_search</function>. + <note> + <para> + Estos parámetros opcionales fueron agregados en 4.0.2: + <parameter>solo_atribs</parameter>, + <parameter>limite_tamanyo</parameter>, + <parameter>limite_tiempo</parameter>, + <parameter>deref</parameter>. + </para> + </note> <example> - <title>Produce una lista de todas las unidades organizativas de una compañía - </title> + <title>Producir una lista de todas los unidades organizacionales + de una organización + </title> <programlisting role="php3"> -// $ds es un identificador de conexión válido. +<![CDATA[ +// $ds es un identificador de enlace valido para un servidor de directorios -$dnbase = "o=Mi Compañía, c=ES"; -$solonecesito = array("ou"); +$dn_base = "o=Mi Compañía, c=ES"; +$solo_estos = array("ou"); -$sr=ldap_list($ds, $dnbase, "ou=*", $solonecesito); +$sr=ldap_list($ds, $dn_base, "ou=*", $solo_estos); $info = ldap_get_entries($ds, $sr); -for ($i=0; $i < $info["count"]; $i++) +for ($i=0; $i<$info["count"]; $i++) { echo $info[$i]["ou"][0] ; +} + +]]> </programlisting> </example></para> + <note> + <para> + A partir de 4.0.5, es posible realizar búsquedas + paralelas. Vea + <function>ldap_search</function> para más detalles. + </para> + </note> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/math/reference.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-es/reference/math/reference.xml diff -u phpdoc-es/reference/math/reference.xml:1.3 phpdoc-es/reference/math/reference.xml:1.4 --- phpdoc-es/reference/math/reference.xml:1.3 Mon Dec 15 01:45:14 2003 +++ phpdoc-es/reference/math/reference.xml Tue Feb 17 15:05:38 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <!-- EN-Revision: 1.6 Maintainer: lboshell Status: ready --> <reference id="ref.math"> <title>Funciones matemáticas</title> @@ -9,17 +9,18 @@ <section id="math.intro"> &reftitle.intro; <para> -Estas funciones matemáticas solo manipulan valores dentro del -rango de los tipos <type>integer</type> y <type>float</type> en su -equipo (en la actualidad, estos tipos corresponden con los tipos long -y double de C). Si necesita manejar números más grandes, -eche un vistazo a las <link linkend="ref.bc">funciones -matemáticas de precisión arbitraria</link>. + Estas funciones matemáticas solo manipulan valores dentro + del rango de los tipos <type>integer</type> y <type>float</type> + en su equipo (en la actualidad, estos tipos corresponden con los + tipos long y double de C). Si necesita manejar números + más grandes, eche un vistazo a las <link + linkend="ref.bc">funciones matemáticas de precisión + arbitraria</link>. </para> <simpara> -Vea también la página del manual sobre <link -linkend="language.operators.arithmetic">operadores -aritméticos</link>. + Vea también la página del manual sobre <link + linkend="language.operators.arithmetic">operadores + aritméticos</link>. </simpara> </section> http://cvs.php.net/diff.php/phpdoc-es/reference/misc/functions/highlight-file.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-es/reference/misc/functions/highlight-file.xml diff -u phpdoc-es/reference/misc/functions/highlight-file.xml:1.5 phpdoc-es/reference/misc/functions/highlight-file.xml:1.6 --- phpdoc-es/reference/misc/functions/highlight-file.xml:1.5 Sat Jan 31 10:47:18 2004 +++ phpdoc-es/reference/misc/functions/highlight-file.xml Tue Feb 17 15:05:38 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.14 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.15 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/misc.xml, last change in rev 1.22 --> <refentry id="function.highlight-file"> <refnamediv> @@ -71,7 +71,7 @@ <example> <title>Creación de una URL para resaltar código fuente</title> - <programlisting> + <programlisting role="apache-conf"> <![CDATA[ <Location /source> ForceType application/x-httpd-php http://cvs.php.net/diff.php/phpdoc-es/reference/session/ini.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-es/reference/session/ini.xml diff -u phpdoc-es/reference/session/ini.xml:1.5 phpdoc-es/reference/session/ini.xml:1.6 --- phpdoc-es/reference/session/ini.xml:1.5 Sat Jan 31 10:47:19 2004 +++ phpdoc-es/reference/session/ini.xml Tue Feb 17 15:05:39 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.19 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.21 Maintainer: lboshell Status: ready --> <section id="session.configuration"> &reftitle.runtime; &extension.runtime; @@ -127,6 +127,16 @@ <entry>PHP_INI_ALL</entry> </row> <row> + <entry>session.hash_function</entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>session.hash_bits_per_character</entry> + <entry>"4"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> <entry>url_rewriter.tags</entry> <entry>"a=href,area=href,frame=src,input=src,form=fakeentry"</entry> <entry>PHP_INI_ALL</entry> @@ -332,7 +342,10 @@ gestionar la recolección de basura en sus sesiones si está atascado con un sistema de archivos FAT, u otros sistemas de archivos en donde no se encuentra disponible el - manejo de valores atime. + manejo de valores atime. A partir de PHP 4.2.3, se usa mtime + (fecha de modificación) en lugar de atime. De este modo, + usted no tendrá problemas con sistemas de archivos en + donde el rastreo de atime no se encuentra disponible. </simpara> </note> </listitem> @@ -604,6 +617,47 @@ </listitem> </varlistentry> + <varlistentry id="ini.session.hash-function"> + <term> + <parameter>session.hash_function</parameter> + <type>integer</type> + </term> + <listitem> + <simpara> + <literal>session.hash_function</literal> le permite especificar + el algoritmo hash usado para generar las IDs de + sesión. '0' quiere decir MD5 (128 bits) y '1' quiere decir + SHA-1 (160 bits). + </simpara> + <note> + <para> + Este valor fue introducido en PHP 5. + </para> + </note> + </listitem> + </varlistentry> + + <varlistentry id="ini.session.hash-bits-per-character"> + <term> + <parameter>session.hash_bits_per_character</parameter> + <type>integer</type> + </term> + <listitem> + <simpara> + <literal>session.hash_bits_per_character</literal> le permite + definir cuántos bits son almacenados en cada caracter + cuando se convierten los datos binarios de hash hacia algo + legible. Los valores posibles son '4' (0-9, a-f), '5' (0-9, a-v), + y '6' (0-9, a-z, A-Z, "-", ","). + </simpara> + <note> + <para> + Este valor fue introducido en PHP 5. + </para> + </note> + </listitem> + </varlistentry> + <varlistentry id="ini.url-rewriter.tags"> <term> <parameter>url_rewriter.tags</parameter> http://cvs.php.net/diff.php/phpdoc-es/reference/stream/functions/stream-socket-server.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/stream/functions/stream-socket-server.xml diff -u phpdoc-es/reference/stream/functions/stream-socket-server.xml:1.2 phpdoc-es/reference/stream/functions/stream-socket-server.xml:1.3 --- phpdoc-es/reference/stream/functions/stream-socket-server.xml:1.2 Sat Jan 31 10:47:19 2004 +++ phpdoc-es/reference/stream/functions/stream-socket-server.xml Tue Feb 17 15:05:39 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.11 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.12 Maintainer: lboshell Status: ready --> <refentry id="function.stream-socket-server"> <refnamediv> <refname>stream_socket_server</refname> @@ -76,7 +76,7 @@ <programlisting role="php"> <![CDATA[ <?php -$socket = stream_socket_server("tcp://0.0.0.0:8000", $errno, $errstr, STREAM_SERVER_BIND); +$socket = stream_socket_server("tcp://0.0.0.0:8000", $errno, $errstr); if (!$socket) { echo "$errstr ($errno)<br />\n"; } else { @@ -107,7 +107,7 @@ <programlisting role="php"> <![CDATA[ <?php -$socket = stream_socket_server("udp://0.0.0.0:13", $errno, $errstr); +$socket = stream_socket_server("udp://0.0.0.0:13", $errno, $errstr, STREAM_SERVER_BIND); if (!$socket) { echo "ERROR: $errno - $errstr<br />\n"; } else { http://cvs.php.net/diff.php/phpdoc-es/reference/url/functions/http-build-query.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-es/reference/url/functions/http-build-query.xml diff -u phpdoc-es/reference/url/functions/http-build-query.xml:1.4 phpdoc-es/reference/url/functions/http-build-query.xml:1.5 --- phpdoc-es/reference/url/functions/http-build-query.xml:1.4 Sat Jan 31 10:47:20 2004 +++ phpdoc-es/reference/url/functions/http-build-query.xml Tue Feb 17 15:05:40 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.7 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.8 Maintainer: lboshell Status: ready --> <refentry id="function.http-build-query"> <refnamediv> <refname>http_build_query</refname> @@ -43,10 +43,8 @@ 'vaca'=>'leche', 'php'=>'procesador de hipertexto'); -echo http_build_query($datos); -/* Genera la salida: - foo=bar&baz=boom&vaca=leche&php=procesador+de+hipertexto - */ +echo http_build_query($datos); // foo=bar&baz=boom&vaca=leche&php=procesador+de+hipertexto + ?> ]]> </programlisting> @@ -139,10 +137,8 @@ $datos = new miClase(); -echo http_build_query($datos); -/* Genera la salida: - foo=bar&baz=boom - */ +echo http_build_query($datos); // foo=bar&baz=boom + ?> ]]> </programlisting> @@ -178,4 +174,3 @@ vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> -
http://cvs.php.net/diff.php/phpdoc-es/faq/installation.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-es/faq/installation.xml diff -u phpdoc-es/faq/installation.xml:1.4 phpdoc-es/faq/installation.xml:1.5 --- phpdoc-es/faq/installation.xml:1.4 Fri Jan 16 01:56:35 2004 +++ phpdoc-es/faq/installation.xml Tue Feb 17 15:05:33 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.26 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.27 Maintainer: lboshell Status: ready --> <chapter id="faq.installation"> <title>Instalación</title> <titleabbrev>Instalación</titleabbrev> @@ -38,7 +38,7 @@ valor en tiempo de compilación con la bandera <link linkend="install.configure.with-config-file-path">--with-config-file-path</link>. Podría, por ejemplo, definirla como: - <programlisting> + <programlisting role="shell"> --with-config-file-path=/etc </programlisting> Y luego copiaría <filename>php.ini-dist</filename> desde @@ -46,7 +46,7 @@ editaría para hacer cualquier modificación local que desee. </para> - <programlisting> + <programlisting role="shell"> --with-config-file-scan-dir=PATH </programlisting> <para> @@ -161,22 +161,26 @@ RPM, necesita remover los caracteres de comentario, o agregar algunas o todas de las siguientes líneas en su archivo &httpd.conf;: - <programlisting> -# Extra Modules + <programlisting role="apache-conf"> +<![CDATA[ +# Modulos Extra AddModule mod_php.c AddModule mod_php3.c AddModule mod_perl.c -# Extra Modules +# Modulos Extra LoadModule php_module modules/mod_php.so -LoadModule php3_module modules/libphp3.so /* para PHP 3 */ -LoadModule php4_module modules/libphp4.so /* para PHP 4 */ +LoadModule php3_module modules/libphp3.so # para PHP 3 +LoadModule php4_module modules/libphp4.so # para PHP 4 LoadModule perl_module modules/libperl.so +]]> </programlisting> Y agregar: - <programlisting> -AddType application/x-httpd-php3 .php3 /* para PHP 3 */ -AddType application/x-httpd-php .php /* para PHP 4 */ + <programlisting role="apache-conf"> +<![CDATA[ +AddType application/x-httpd-php3 .php3 # para PHP 3 +AddType application/x-httpd-php .php # para PHP 4 +]]> </programlisting> ... a las propiedades globales, o a las propiedades del VirtualDomain para el cual desea tener soporte de PHP. @@ -225,7 +229,7 @@ <listitem> <para> Primero remueva mod_php3 : - <programlisting> + <programlisting role="shell"> rpm -e mod_php3 </programlisting> </para> @@ -234,7 +238,7 @@ <para> Luego obtenga el rpm fuente e INSTÁLELO, NO use --rebuild - <programlisting> + <programlisting role="shell"> rpm -Uvh mod_php3-3.0.5-2.src.rpm </programlisting> </para> @@ -250,11 +254,11 @@ </para> <para> Para MySQL, usted agregaría - <programlisting> + <programlisting role="shell"> --with-mysql=/usr \ </programlisting> La sección %build se verá algo como: - <programlisting> + <programlisting role="shell"> ./configure --prefix=/usr \ --with-apxs=/usr/sbin/apxs \ --with-config-file-path=/usr/lib \ @@ -270,7 +274,7 @@ <para> Una vez está hecha esta modificación, compile el rpm binario de este modo: - <programlisting> + <programlisting role="shell"> rpm -bb /usr/src/redhat/SPECS/mod_php3.spec </programlisting> </para> @@ -278,7 +282,7 @@ <listitem> <para> Luego instale el rpm - <programlisting> + <programlisting role="shell"> rpm -ivh /usr/src/redhat/RPMS/i386/mod_php3-3.0.5-2.i386.rpm </programlisting> </para> @@ -369,7 +373,7 @@ Algunos sistemas operativos: He instalado PHP sin errores, pero cuando intento iniciar apache, recibo errores de símbolos indefinidos: - <programlisting> + <programlisting role="shell"> [mi_maquina:usuario /src/php4] root# apachectl configtest apachectl: /usr/local/apache/bin/httpd Undefined symbols: _compress @@ -392,12 +396,12 @@ <para> Windows: He instalado PHP, pero cuando intento acceder a un script PHP a través de mi navegador, recibo el error: - <programlisting> + <screen> cgi error: The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: - </programlisting> + </screen> </para> </question> <answer> http://cvs.php.net/diff.php/phpdoc-es/faq/obtaining.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/faq/obtaining.xml diff -u phpdoc-es/faq/obtaining.xml:1.2 phpdoc-es/faq/obtaining.xml:1.3 --- phpdoc-es/faq/obtaining.xml:1.2 Tue Jan 20 22:34:32 2004 +++ phpdoc-es/faq/obtaining.xml Tue Feb 17 15:05:33 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.16 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.17 Maintainer: lboshell Status: ready --> <chapter id="faq.obtaining"> <title>Obtención de PHP</title> <titleabbrev>Obtención de PHP</titleabbrev> @@ -101,7 +101,7 @@ </listitem> <listitem> <simpara> - <ulink url="&url.ucd-snmp;">SNMP* (Unix): </ulink>. + <ulink url="&url.net-snmp;">SNMP* (Unix): </ulink>. </simpara> </listitem> <listitem> http://cvs.php.net/diff.php/phpdoc-es/reference/dir/functions/getcwd.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/dir/functions/getcwd.xml diff -u phpdoc-es/reference/dir/functions/getcwd.xml:1.2 phpdoc-es/reference/dir/functions/getcwd.xml:1.3 --- phpdoc-es/reference/dir/functions/getcwd.xml:1.2 Thu Dec 18 20:59:12 2003 +++ phpdoc-es/reference/dir/functions/getcwd.xml Tue Feb 17 15:05:33 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.4 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.5 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/dir.xml, last change in rev 1.7 --> <refentry id="function.getcwd"> <refnamediv> @@ -35,7 +35,7 @@ ]]> </programlisting> <para> - Este ejemplo producirá la salida: + Este ejemplo producirá una salida similar a: </para> <screen> <![CDATA[ http://cvs.php.net/diff.php/phpdoc-es/reference/errorfunc/constants.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-es/reference/errorfunc/constants.xml diff -u phpdoc-es/reference/errorfunc/constants.xml:1.5 phpdoc-es/reference/errorfunc/constants.xml:1.6 --- phpdoc-es/reference/errorfunc/constants.xml:1.5 Fri Jan 16 17:59:15 2004 +++ phpdoc-es/reference/errorfunc/constants.xml Tue Feb 17 15:05:34 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.11 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.12 Maintainer: lboshell Status: ready --> <section id="errorfunc.constants"> &reftitle.constants; &extension.constants.core; @@ -222,7 +222,7 @@ <link linkend="language.operators.bitwise">operadores bit a bit</link> para combinar estos valores o excluir explícitamente ciertos tipos de errores. Sin embargo, note - que únicamente '|', '~', '!', ^ y '&' serán + que únicamente '|', '~', '!', '^' y '&' serán entendidos desde &php.ini;, y que ningún operador bit a bit será interpretado correctamente desde <filename>php3.ini</filename>. http://cvs.php.net/diff.php/phpdoc-es/reference/exec/functions/system.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/exec/functions/system.xml diff -u phpdoc-es/reference/exec/functions/system.xml:1.2 phpdoc-es/reference/exec/functions/system.xml:1.3 --- phpdoc-es/reference/exec/functions/system.xml:1.2 Tue Jan 20 22:34:35 2004 +++ phpdoc-es/reference/exec/functions/system.xml Tue Feb 17 15:05:35 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.6 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.7 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/exec.xml, last change in rev 1.24 --> <refentry id="function.system"> <refnamediv> @@ -92,6 +92,7 @@ ejecutable. </simpara> </note> + &warn.sm.exec; <para> Vea también <function>exec</function>, <function>passthru</function>, <function>popen</function>, http://cvs.php.net/diff.php/phpdoc-es/reference/info/ini.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/info/ini.xml diff -u phpdoc-es/reference/info/ini.xml:1.1 phpdoc-es/reference/info/ini.xml:1.2 --- phpdoc-es/reference/info/ini.xml:1.1 Mon Dec 1 20:52:27 2003 +++ phpdoc-es/reference/info/ini.xml Tue Feb 17 15:05:35 2004 @@ -1,12 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.7 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.8 Maintainer: lboshell Status: ready --> <section id="info.configuration"> &reftitle.runtime; &extension.runtime; <para> <table> - <title>Opciones de Configuración del sistema de información PHP</title> + <title>Opciones de Configuración del sistema de + información PHP</title> <tgroup cols="3"> <thead> <row> @@ -52,6 +53,11 @@ <entry>PHP_INI_ALL</entry> </row> <row> + <entry>max_input_time</entry> + <entry>"60"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> <entry>magic_quotes_gpc</entry> <entry>"1"</entry> <entry>PHP_INI_PERDIR|PHP_INI_SYSTEM</entry> @@ -179,8 +185,7 @@ </para> <para> El tiempo máximo de ejecución no es afectado por - llamadas del sistema, la - función <function>sleep</function>, etc. Por favor + llamadas del sistema, operaciones de secuencias etc. Por favor consulte la función <function>set_time_limit</function> para más detalles. </para> @@ -194,6 +199,21 @@ </listitem> </varlistentry> + <varlistentry id="ini.max-input-time"> + <term> + <parameter>max_input_time</parameter> + <type>integer</type> + </term> + <listitem> + <para> + Este valor establece el tiempo máximo en segundos con el + que cuenta un script para recibir datos de entrada, como POST, + GET y cargas de archivos. El valor predeterminado + es <literal>60</literal>. + </para> + </listitem> + </varlistentry> + <varlistentry id="ini.magic-quotes-gpc"> <term> <parameter>magic_quotes_gpc</parameter> http://cvs.php.net/diff.php/phpdoc-es/reference/info/functions/dl.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-es/reference/info/functions/dl.xml diff -u phpdoc-es/reference/info/functions/dl.xml:1.4 phpdoc-es/reference/info/functions/dl.xml:1.5 --- phpdoc-es/reference/info/functions/dl.xml:1.4 Mon Dec 22 01:21:40 2003 +++ phpdoc-es/reference/info/functions/dl.xml Tue Feb 17 15:05:36 2004 @@ -1,11 +1,12 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.16 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.18 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/info.xml, last change in rev 1.29 --> <refentry id="function.dl"> <refnamediv> <refname>dl</refname> - <refpurpose>Carga una extensión PHP en tiempo de ejecución</refpurpose> + <refpurpose>Carga una extensión PHP en tiempo de + ejecución</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> @@ -14,33 +15,36 @@ <methodparam><type>string</type><parameter>libreria</parameter></methodparam> </methodsynopsis> <para> -Carga la extensión PHP dada por el -parámetro <parameter>libreria</parameter>. El -parámetro <parameter>libreria</parameter> -es <emphasis>únicamente</emphasis> el nombre de archivo de la -extensión a cargar, el cual también depende de su -plataforma. Por ejemplo, la extensión <link -linkend="ref.sockets">sockets</link> (si fue compilada como -módulo, ¡que no es el comportamiento predeterminado!) -podría llamarse <filename>sockets.so</filename> en plataformas -Unix, mientras que se llama <filename>php_sockets.dll</filename> en la -plataforma windows. - </para> - <para> -&return.success; Si la funcionalidad de carga de módulos no -está disponible (ver Nota) o ha sido deshabilitada (ya sea -mediante la desactivación de <literal>enable_dl</literal> o -activando &safemode; en &php.ini;) un <constant>E_ERROR</constant> es -producido y se detiene la ejecución. Si <function>dl</function> -falla porque la librería especificada no pudo ser cargada, se -emite un mensaje <constant>E_WARNING</constant> en -compañía del &false;. - </para> - <para> -Use <function>extension_loaded</function> para probar si una cierta -extensión ya se encuentra disponible o no. Esto funciona tanto -con extensiones integradas como con las cargadas dinámicamente -(ya sea mediante &php.ini; o <function>dl</function>). + Carga la extensión PHP dada por el + parámetro <parameter>libreria</parameter>. El + parámetro <parameter>libreria</parameter> + es <emphasis>únicamente</emphasis> el nombre de archivo de + la extensión a cargar, el cual también depende de + su plataforma. Por ejemplo, la extensión <link + linkend="ref.sockets">sockets</link> (si fue compilada como + módulo, ¡que no es el comportamiento + predeterminado!) podría + llamarse <filename>sockets.so</filename> en plataformas Unix, + mientras que se llama <filename>php_sockets.dll</filename> en la + plataforma windows. + </para> + <para> + &return.success; Si la funcionalidad de carga de módulos + no está disponible (ver Nota) o ha sido deshabilitada (ya + sea mediante la desactivación + de <literal>enable_dl</literal> o activando &safemode; en + &php.ini;) un <constant>E_ERROR</constant> es producido y se + detiene la ejecución. Si <function>dl</function> falla + porque la librería especificada no pudo ser cargada, se + emite un mensaje <constant>E_WARNING</constant> en + compañía del &false;. + </para> + <para> + Use <function>extension_loaded</function> para probar si una + cierta extensión ya se encuentra disponible o no. Esto + funciona tanto con extensiones integradas como con las cargadas + dinámicamente (ya sea mediante &php.ini; + o <function>dl</function>). </para> <example> <title>Ejemplos de <function>dl</function></title> @@ -67,17 +71,17 @@ </programlisting> </example> <para> -El directorio desde donde es cargada la extensión depende de su -plataforma: + El directorio desde donde es cargada la extensión depende + de su plataforma: </para> <para> -Windows - Si no está definida explícitamente en -&php.ini;, la extensión es cargada -desde <filename>c:\php4\extensions\</filename> por defecto. + Windows - Si no está definida explícitamente en + &php.ini;, la extensión es cargada + desde <filename>c:\php4\extensions\</filename> por defecto. </para> <para> -Unix - Si no está definida explícitamente en &php.ini;, -el directorio de extensiones predeterminado depende de + Unix - Si no está definida explícitamente en + &php.ini;, el directorio de extensiones predeterminado depende de <itemizedlist> <listitem> <simpara> @@ -101,33 +105,37 @@ </simpara> </listitem> </itemizedlist> -Tomando en cuenta lo anterior, el directorio recibe el valor -predeterminado de <literal><dir-instalacion>/lib/php/extensions/ -<debug-o-no>-<zts-o-no>-ZEND_MODULE_API_NO</literal>, -p.ej. -<filename>/usr/local/php/lib/php/extensions/debug-non-zts-20010901</filename> -o <filename>/usr/local/php/lib/php/extensions/no-debug-zts-20010901</filename>. + Tomando en cuenta lo anterior, el directorio recibe el valor + predeterminado + de <literal><dir-instalacion>/lib/php/extensions/ + <debug-o-no>-<zts-o-no>-ZEND_MODULE_API_NO</literal>, + p.ej. + <filename>/usr/local/php/lib/php/extensions/debug-non-zts-20010901</filename> + o <filename>/usr/local/php/lib/php/extensions/no-debug-zts-20010901</filename>. </para> <note> <para> -La función <function>dl</function> <emphasis>no</emphasis> es -soportada en servidores Web multi-hilos. Use la -sentencia <literal>extensions</literal> en su &php.ini; cuando trabaje -sobre ese tipo de entornos. Sin embargo, ¡las -versiones <literal>CGI</literal> y <literal>CLI</literal> <emphasis -role="strong">no</emphasis> son afectadas! + La + función <function>dl</function> <emphasis>no</emphasis> + es soportada en servidores Web multi-hilos. Use la + sentencia <literal>extensions</literal> en su &php.ini; cuando + trabaje sobre ese tipo de entornos. Sin embargo, ¡las + versiones <literal>CGI</literal> + y <literal>CLI</literal> <emphasis role="strong">no</emphasis> + son afectadas! </para> </note> <note> <para> -<function>dl</function> es sensible a mayúsculas y -minúsculas en plataformas Unix. + <function>dl</function> es sensible a mayúsculas y + minúsculas en plataformas Unix. </para> </note> ¬e.sm.disabled; <para> -Vea también <link linkend="ini.extension">Directivas de Carga -de Extensión</link> y <function>extension_loaded</function>. + Vea también <link linkend="ini.extension">Directivas de + Carga de Extensión</link> + y <function>extension_loaded</function>. </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/ldap/functions/ldap-list.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/ldap/functions/ldap-list.xml diff -u phpdoc-es/reference/ldap/functions/ldap-list.xml:1.2 phpdoc-es/reference/ldap/functions/ldap-list.xml:1.3 --- phpdoc-es/reference/ldap/functions/ldap-list.xml:1.2 Tue Jun 24 22:09:39 2003 +++ phpdoc-es/reference/ldap/functions/ldap-list.xml Tue Feb 17 15:05:37 2004 @@ -1,53 +1,84 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/ldap.xml, last change in rev 1.1 --> -<!-- last change to 'ldap-list' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.3 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.2 --> <refentry id="function.ldap-list"> <refnamediv> <refname>ldap_list</refname> - <refpurpose>Búsqueda Single-level (Nivel Único)</refpurpose> + <refpurpose>Búsqueda de nivel único</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> - <type>int</type><methodname>ldap_list</methodname> - <methodparam><type>int</type><parameter>identificador_de_conexion</parameter></methodparam> - <methodparam><type>string</type><parameter>dn_base</parameter></methodparam> - <methodparam><type>string</type><parameter>filtro</parameter></methodparam> - <methodparam choice="opt"><type>array</type><parameter>atributos</parameter></methodparam> + <type>resource</type><methodname>ldap_list</methodname> + <methodparam><type>resource</type><parameter>id_enlace</parameter></methodparam> + <methodparam><type>string</type><parameter>dn_base</parameter></methodparam> + <methodparam><type>string</type><parameter>filtro</parameter></methodparam> + <methodparam choice="opt"><type>array</type><parameter>atributos</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>solo_atribs</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>limite_tamanyo</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>limite_tiempo</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>deref</parameter></methodparam> </methodsynopsis> <para> - Devuelve un identificador de resultado de búsqueda o falso en caso de error.</para> + Devuelve un identificador de resultado de búsqueda, o + &false; en caso de error. + </para> <para> - <function>ldap_list</function> realiza la búsqueda según el filtro - especificado en el directorio con el alcance LDAP_SCOPE_ONELEVEL.</para> + <function>ldap_list</function> realiza la búsqueda de + un <parameter>filtro</parameter> especificado en el directorio + con el contexto LDAP_SCOPE_ONELEVEL. + </para> <para> - LDAP_SCOPE_ONELEVEL significa que la búsqueda solo devuelve - información que se encuentre en el nivel inmediatamente inferior - al dn_base especificado en la llamada a la función. (Equivalente - a ejecutar "ls" en un unix y obtener un listado de ficheros y carpetas - en el directorio de trabajo actual.)</para> + LDAP_SCOPE_ONELEVEL quiere decir que la búsqueda + sólo debe devolver información que se encuentre en + el nivel inmediatamente inferior + al <parameter>dn_base</parameter> especificado en la + llamada. (Equivalente a escribir "ls" y obtener un listado de + archivos y carpetas en el directorio de trabajo actual.) + </para> <para> - Esta llamada toma un cuarto parámetro opcional, que es un array - de los atributos requeridos. Consulte las notas de la función - <function>ldap_search</function>. + Esta llamada recibe 5 parámetros opcionales. Vea las notas + de <function>ldap_search</function>. + <note> + <para> + Estos parámetros opcionales fueron agregados en 4.0.2: + <parameter>solo_atribs</parameter>, + <parameter>limite_tamanyo</parameter>, + <parameter>limite_tiempo</parameter>, + <parameter>deref</parameter>. + </para> + </note> <example> - <title>Produce una lista de todas las unidades organizativas de una compañía - </title> + <title>Producir una lista de todas los unidades organizacionales + de una organización + </title> <programlisting role="php3"> -// $ds es un identificador de conexión válido. +<![CDATA[ +// $ds es un identificador de enlace valido para un servidor de directorios -$dnbase = "o=Mi Compañía, c=ES"; -$solonecesito = array("ou"); +$dn_base = "o=Mi Compañía, c=ES"; +$solo_estos = array("ou"); -$sr=ldap_list($ds, $dnbase, "ou=*", $solonecesito); +$sr=ldap_list($ds, $dn_base, "ou=*", $solo_estos); $info = ldap_get_entries($ds, $sr); -for ($i=0; $i < $info["count"]; $i++) +for ($i=0; $i<$info["count"]; $i++) { echo $info[$i]["ou"][0] ; +} + +]]> </programlisting> </example></para> + <note> + <para> + A partir de 4.0.5, es posible realizar búsquedas + paralelas. Vea + <function>ldap_search</function> para más detalles. + </para> + </note> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/math/reference.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-es/reference/math/reference.xml diff -u phpdoc-es/reference/math/reference.xml:1.3 phpdoc-es/reference/math/reference.xml:1.4 --- phpdoc-es/reference/math/reference.xml:1.3 Mon Dec 15 01:45:14 2003 +++ phpdoc-es/reference/math/reference.xml Tue Feb 17 15:05:38 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <!-- EN-Revision: 1.6 Maintainer: lboshell Status: ready --> <reference id="ref.math"> <title>Funciones matemáticas</title> @@ -9,17 +9,18 @@ <section id="math.intro"> &reftitle.intro; <para> -Estas funciones matemáticas solo manipulan valores dentro del -rango de los tipos <type>integer</type> y <type>float</type> en su -equipo (en la actualidad, estos tipos corresponden con los tipos long -y double de C). Si necesita manejar números más grandes, -eche un vistazo a las <link linkend="ref.bc">funciones -matemáticas de precisión arbitraria</link>. + Estas funciones matemáticas solo manipulan valores dentro + del rango de los tipos <type>integer</type> y <type>float</type> + en su equipo (en la actualidad, estos tipos corresponden con los + tipos long y double de C). Si necesita manejar números + más grandes, eche un vistazo a las <link + linkend="ref.bc">funciones matemáticas de precisión + arbitraria</link>. </para> <simpara> -Vea también la página del manual sobre <link -linkend="language.operators.arithmetic">operadores -aritméticos</link>. + Vea también la página del manual sobre <link + linkend="language.operators.arithmetic">operadores + aritméticos</link>. </simpara> </section> http://cvs.php.net/diff.php/phpdoc-es/reference/misc/functions/highlight-file.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-es/reference/misc/functions/highlight-file.xml diff -u phpdoc-es/reference/misc/functions/highlight-file.xml:1.5 phpdoc-es/reference/misc/functions/highlight-file.xml:1.6 --- phpdoc-es/reference/misc/functions/highlight-file.xml:1.5 Sat Jan 31 10:47:18 2004 +++ phpdoc-es/reference/misc/functions/highlight-file.xml Tue Feb 17 15:05:38 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.14 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.15 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/misc.xml, last change in rev 1.22 --> <refentry id="function.highlight-file"> <refnamediv> @@ -71,7 +71,7 @@ <example> <title>Creación de una URL para resaltar código fuente</title> - <programlisting> + <programlisting role="apache-conf"> <![CDATA[ <Location /source> ForceType application/x-httpd-php http://cvs.php.net/diff.php/phpdoc-es/reference/session/ini.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-es/reference/session/ini.xml diff -u phpdoc-es/reference/session/ini.xml:1.5 phpdoc-es/reference/session/ini.xml:1.6 --- phpdoc-es/reference/session/ini.xml:1.5 Sat Jan 31 10:47:19 2004 +++ phpdoc-es/reference/session/ini.xml Tue Feb 17 15:05:39 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.19 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.21 Maintainer: lboshell Status: ready --> <section id="session.configuration"> &reftitle.runtime; &extension.runtime; @@ -127,6 +127,16 @@ <entry>PHP_INI_ALL</entry> </row> <row> + <entry>session.hash_function</entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>session.hash_bits_per_character</entry> + <entry>"4"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> <entry>url_rewriter.tags</entry> <entry>"a=href,area=href,frame=src,input=src,form=fakeentry"</entry> <entry>PHP_INI_ALL</entry> @@ -332,7 +342,10 @@ gestionar la recolección de basura en sus sesiones si está atascado con un sistema de archivos FAT, u otros sistemas de archivos en donde no se encuentra disponible el - manejo de valores atime. + manejo de valores atime. A partir de PHP 4.2.3, se usa mtime + (fecha de modificación) en lugar de atime. De este modo, + usted no tendrá problemas con sistemas de archivos en + donde el rastreo de atime no se encuentra disponible. </simpara> </note> </listitem> @@ -604,6 +617,47 @@ </listitem> </varlistentry> + <varlistentry id="ini.session.hash-function"> + <term> + <parameter>session.hash_function</parameter> + <type>integer</type> + </term> + <listitem> + <simpara> + <literal>session.hash_function</literal> le permite especificar + el algoritmo hash usado para generar las IDs de + sesión. '0' quiere decir MD5 (128 bits) y '1' quiere decir + SHA-1 (160 bits). + </simpara> + <note> + <para> + Este valor fue introducido en PHP 5. + </para> + </note> + </listitem> + </varlistentry> + + <varlistentry id="ini.session.hash-bits-per-character"> + <term> + <parameter>session.hash_bits_per_character</parameter> + <type>integer</type> + </term> + <listitem> + <simpara> + <literal>session.hash_bits_per_character</literal> le permite + definir cuántos bits son almacenados en cada caracter + cuando se convierten los datos binarios de hash hacia algo + legible. Los valores posibles son '4' (0-9, a-f), '5' (0-9, a-v), + y '6' (0-9, a-z, A-Z, "-", ","). + </simpara> + <note> + <para> + Este valor fue introducido en PHP 5. + </para> + </note> + </listitem> + </varlistentry> + <varlistentry id="ini.url-rewriter.tags"> <term> <parameter>url_rewriter.tags</parameter> http://cvs.php.net/diff.php/phpdoc-es/reference/stream/functions/stream-socket-server.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/stream/functions/stream-socket-server.xml diff -u phpdoc-es/reference/stream/functions/stream-socket-server.xml:1.2 phpdoc-es/reference/stream/functions/stream-socket-server.xml:1.3 --- phpdoc-es/reference/stream/functions/stream-socket-server.xml:1.2 Sat Jan 31 10:47:19 2004 +++ phpdoc-es/reference/stream/functions/stream-socket-server.xml Tue Feb 17 15:05:39 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.11 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.12 Maintainer: lboshell Status: ready --> <refentry id="function.stream-socket-server"> <refnamediv> <refname>stream_socket_server</refname> @@ -76,7 +76,7 @@ <programlisting role="php"> <![CDATA[ <?php -$socket = stream_socket_server("tcp://0.0.0.0:8000", $errno, $errstr, STREAM_SERVER_BIND); +$socket = stream_socket_server("tcp://0.0.0.0:8000", $errno, $errstr); if (!$socket) { echo "$errstr ($errno)<br />\n"; } else { @@ -107,7 +107,7 @@ <programlisting role="php"> <![CDATA[ <?php -$socket = stream_socket_server("udp://0.0.0.0:13", $errno, $errstr); +$socket = stream_socket_server("udp://0.0.0.0:13", $errno, $errstr, STREAM_SERVER_BIND); if (!$socket) { echo "ERROR: $errno - $errstr<br />\n"; } else { http://cvs.php.net/diff.php/phpdoc-es/reference/url/functions/http-build-query.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-es/reference/url/functions/http-build-query.xml diff -u phpdoc-es/reference/url/functions/http-build-query.xml:1.4 phpdoc-es/reference/url/functions/http-build-query.xml:1.5 --- phpdoc-es/reference/url/functions/http-build-query.xml:1.4 Sat Jan 31 10:47:20 2004 +++ phpdoc-es/reference/url/functions/http-build-query.xml Tue Feb 17 15:05:40 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.7 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.8 Maintainer: lboshell Status: ready --> <refentry id="function.http-build-query"> <refnamediv> <refname>http_build_query</refname> @@ -43,10 +43,8 @@ 'vaca'=>'leche', 'php'=>'procesador de hipertexto'); -echo http_build_query($datos); -/* Genera la salida: - foo=bar&baz=boom&vaca=leche&php=procesador+de+hipertexto - */ +echo http_build_query($datos); // foo=bar&baz=boom&vaca=leche&php=procesador+de+hipertexto + ?> ]]> </programlisting> @@ -139,10 +137,8 @@ $datos = new miClase(); -echo http_build_query($datos); -/* Genera la salida: - foo=bar&baz=boom - */ +echo http_build_query($datos); // foo=bar&baz=boom + ?> ]]> </programlisting> @@ -178,4 +174,3 @@ vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> -