cvs: phpdoc-es /appendices ini.xml reserved.xml /faq installation.xml /language operators.xml /reference/dbm reference.xml
/reference/dbm/functions dblist.xml dbmopen.xml /reference/domxml configure.xml constants.xml reference.xml /reference/filesystem ini.xml
/reference/filesystem/functions pclose.xml popen.xml readfile.xml /reference/nis/functions funcion.yp-master.xml funcion.yp-order.xml
/reference/ovrimos/functions ovrimos-close-all.xml /reference/pdf reference.xml /reference/pdf/functions pdf-execute-image.xml pdf-get-info.xml
pdf-put-image.xml pdf-set-transition.xml /reference/session ini.xml /security cgi-bin.xml
| From: | Leonardo Boshell | Date: | Wed, 02 Jun 2004 03:38:37 +0000 |
| Subject: | cvs: phpdoc-es /appendices ini.xml reserved.xml /faq installation.xml /language operators.xml /reference/dbm reference.xml /reference/dbm/functions dblist.xml dbmopen.xml /reference/domxml configure.xml constants.xml reference.xml /reference/filesystem ini.xml /reference/filesystem/functions pclose.xml popen.xml readfile.xml /reference/nis/functions funcion.yp-master.xml funcion.yp-order.xml /reference/ovrimos/functions ovrimos-close-all.xml /reference/pdf reference.xml /reference/pdf/functions pdf-execute-image.xml pdf-get-info.xml pdf-put-image.xml pdf-set-transition.xml /reference/session ini.xml /security cgi-bin.xml |
||
| Groups: | php.doc.es | ||
| Request: | Send a blank email to doc-es+get-606@lists.php.net to get a copy of this message | ||
lboshell Tue Jun 1 23:38:37 2004 EDT
Added files:
/phpdoc-es/reference/domxml configure.xml constants.xml
Removed files:
/phpdoc-es/reference/nis/functions funcion.yp-master.xml
funcion.yp-order.xml
/phpdoc-es/reference/ovrimos/functions ovrimos-close-all.xml
/phpdoc-es/reference/pdf/functions pdf-execute-image.xml
pdf-get-info.xml
pdf-put-image.xml
pdf-set-transition.xml
Modified files:
/phpdoc-es/language operators.xml
/phpdoc-es/appendices ini.xml reserved.xml
/phpdoc-es/faq installation.xml
/phpdoc-es/reference/dbm reference.xml
/phpdoc-es/reference/dbm/functions dblist.xml dbmopen.xml
/phpdoc-es/reference/domxml reference.xml
/phpdoc-es/reference/filesystem ini.xml
/phpdoc-es/reference/filesystem/functions pclose.xml popen.xml
readfile.xml
/phpdoc-es/reference/pdf reference.xml
/phpdoc-es/reference/session ini.xml
/phpdoc-es/security cgi-bin.xml
Log:
- Actualizaciones
- Eliminando archivos obsoletos
- Nuevos archivos de reference/domxml
- Correcciones
s/fichero/archivo/
s/libreria/biblioteca/
http://cvs.php.net/diff.php/phpdoc-es/language/operators.xml?r1=1.11&r2=1.12&ty=u Index: phpdoc-es/language/operators.xml diff -u phpdoc-es/language/operators.xml:1.11 phpdoc-es/language/operators.xml:1.12 --- phpdoc-es/language/operators.xml:1.11 Tue May 25 00:53:36 2004 +++ phpdoc-es/language/operators.xml Tue Jun 1 23:38:36 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.11 $ --> -<!-- EN-Revision: 1.67 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.12 $ --> +<!-- EN-Revision: 1.68 Maintainer: lboshell Status: ready --> <chapter id="language.operators"> <title>Operadores</title> <simpara> @@ -947,7 +947,7 @@ ]]> </programlisting> <simpara> - Dado que <literal>$cosa</literal> es un <type>object</type> de + Dado que <varname>$cosa</varname> es un <type>object</type> de tipo A, pero no de tipo B, sólo el bloque dependiente del tipo A será ejecutado: </simpara> http://cvs.php.net/diff.php/phpdoc-es/appendices/ini.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/appendices/ini.xml diff -u phpdoc-es/appendices/ini.xml:1.1 phpdoc-es/appendices/ini.xml:1.2 --- phpdoc-es/appendices/ini.xml:1.1 Mon May 31 07:17:29 2004 +++ phpdoc-es/appendices/ini.xml Tue Jun 1 23:38:36 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.2 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.3 Maintainer: lboshell Status: ready --> <appendix id="ini"> <title>Lista de directivas de núcleo en &php.ini;</title> @@ -266,8 +266,8 @@ memoria disponible en un servidor. Para usar esta directiva, es necesario habilitarla en tiempo de compilación. De modo que la línea de llamado a configure debe incluir: - <literal>--enable-memory-limit</literal>. Note que es - necesario definir su valor a -1 si no desea imponer un + <option role="configure">--enable-memory-limit</option>. Note + que es necesario definir su valor a -1 si no desea imponer un límite a su memoria. </para> <para> @@ -842,10 +842,10 @@ solamente si su valor no es vacío. Si PHP es configurado con &safemode;, no se servirán archivos por fuera de este directorio. Si PHP no fue compilado con - FORCE_REDIRECT, usted DEBERÍA definir doc_root en caso - de estar usando PHP como CGI bajo cualquier servidor web - (diferente a IIS). La alternativa es usar el parámetro - de configuración <link + FORCE_REDIRECT, usted <emphasis>debería</emphasis> + definir doc_root en caso de estar usando PHP como CGI bajo + cualquier servidor web (diferente a IIS). La alternativa es + usar el parámetro de configuración <link linkend="ini.cgi.force-redirect">cgi.force_redirect</link> descrito más adelante. </para> @@ -860,8 +860,8 @@ <listitem> <para> El nombre base del directorio usado en un directorio de - usuario para archivos <literal>PHP</literal>, por ejemplo - <literal>public_html</literal>. + usuario para archivos PHP, por ejemplo <filename + class="directory">public_html</filename>. </para> </listitem> </varlistentry> @@ -928,14 +928,16 @@ PHP es ejecutado como CGI bajo la mayoría de servidores web. Si no es definido, PHP habilita este parámetro por defecto. Es posible deshabilitarlo - <emphasis>BAJO SU PROPIO RIESGO</emphasis>. + <emphasis>bajo su propio riesgo</emphasis>. </para> <note> <para> - Usuarios de Windows: ES POSIBLE deshabilitar esta - opción para IIS, de hecho, ES NECESARIO hacerlo. Para - lograr que OmniHTTPD o Xitami funcionen es NECESARIO - deshabilitar este parámetro. + Usuarios de Windows: Es <emphasis>posible</emphasis> + deshabilitar esta opción para IIS, de hecho, es + <emphasis>necesario</emphasis> hacerlo. Para lograr que + OmniHTTPD o Xitami funcionen es + <emphasis>necesario</emphasis> deshabilitar este + parámetro. </para> </note> </listitem> @@ -950,14 +952,15 @@ <para> Si cgi.force_redirect se encuentra habilitado, y no está usando servidores web Apache o Netscape - (iPlanet), PUEDE que necesite definir un nombre de variable - de entorno que PHP use para saber si está bien - continuar con la ejecución. + (iPlanet), <emphasis>puede</emphasis> que necesite definir un + nombre de variable de entorno que PHP use para saber si + está bien continuar con la ejecución. </para> <note> <para> - Definir esta variable PUEDE causar problemas de seguridad, - ASEGÚRESE DE SABER LO QUE HACE PRIMERO. + Definir esta variable <emphasis>puede</emphasis> causar + problemas de seguridad, <emphasis>asegúrese de saber + lo que hace primero</emphasis>. </para> </note> </listitem> @@ -1069,9 +1072,9 @@ <para> El directorio temporal usado para almacenar archivos cuando se realiza carga de archivos. Debe tener permisos de - escritura para el usuario bajo el que <literal>PHP</literal> - es ejecutado. Si no se especifica, PHP usará el valor - predeterminado del sistema. + escritura para el usuario bajo el que PHP es ejecutado. Si no + se especifica, PHP usará el valor predeterminado del + sistema. </para> </listitem> </varlistentry> http://cvs.php.net/diff.php/phpdoc-es/appendices/reserved.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-es/appendices/reserved.xml diff -u phpdoc-es/appendices/reserved.xml:1.6 phpdoc-es/appendices/reserved.xml:1.7 --- phpdoc-es/appendices/reserved.xml:1.6 Tue May 25 00:53:36 2004 +++ phpdoc-es/appendices/reserved.xml Tue Jun 1 23:38:36 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.41 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.42 Maintainer: lboshell Status: ready --> <appendix id="reserved"> <title>Lista de Palabras Reservadas</title> http://cvs.php.net/diff.php/phpdoc-es/faq/installation.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-es/faq/installation.xml diff -u phpdoc-es/faq/installation.xml:1.6 phpdoc-es/faq/installation.xml:1.7 --- phpdoc-es/faq/installation.xml:1.6 Thu May 13 14:41:54 2004 +++ phpdoc-es/faq/installation.xml Tue Jun 1 23:38:36 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.27 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.28 Maintainer: lboshell Status: ready --> <chapter id="faq.installation"> <title>Instalación</title> <titleabbrev>Instalación</titleabbrev> @@ -31,12 +31,12 @@ </question> <answer> <para> - Por defecto, en Unix debe estar - en <filename>/usr/local/lib</filename>, lo que - es, <filename><ruta-instalacion>/lib</filename>. La + Por defecto, en Unix debe estar en + <filename>/usr/local/lib</filename>, lo que es, + <filename><ruta-instalacion>/lib</filename>. La mayoría de personas querrán modificar éste valor en tiempo de compilación con la bandera <link - linkend="install.configure.with-config-file-path">--with-config-file-path</link>. + linkend="configure.with-config-file-path">--with-config-file-path</link>. Podría, por ejemplo, definirla como: <programlisting role="shell"> --with-config-file-path=/etc http://cvs.php.net/diff.php/phpdoc-es/reference/dbm/reference.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/dbm/reference.xml diff -u phpdoc-es/reference/dbm/reference.xml:1.2 phpdoc-es/reference/dbm/reference.xml:1.3 --- phpdoc-es/reference/dbm/reference.xml:1.2 Mon Apr 15 20:30:16 2002 +++ phpdoc-es/reference/dbm/reference.xml Tue Jun 1 23:38:36 2004 @@ -1,32 +1,90 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<reference id="ref.dbm"> - <title>Funciones dbm</title> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.9 Maintainer: lboshell Status: ready --> + <reference id="ref.dbm"> + <title>Funciones DBM Functions [obsoletas]</title> <titleabbrev>DBM</titleabbrev> <partintro> - <simpara> - Estas funcione le permiten almacenar registros en una base de - datos estilo dbm. Este tipo de base de datos (soportadas por - las librerías db y gdbm de Berkeley, así como por algunas - librerías del sistema y por una librería incluída para acceso - a archivos de texto) guarda pares clave/valor (en oposición a - los registros completos soportados por las bases de datos - relacionales).</simpara> - <para> - <example> - <title>ejemplo de dbm</title> - <programlisting role="php"> -$dbm = dbmopen("vistoya", "w"); -if (dbmexists($dbm, $idusuario)) { - $visto_ya = dbmfetch($dbm, $idusuario); + <section id="dbm.intro"> + &reftitle.intro; + <para> + Estas funciones le permiten almacenar registros almacenados en + una base de datos estilo-dbm. Este tipo de base de datos + (soportado por la BD de Berkeley, <ulink + url="&url.gdbm;">GDBM</ulink>, y algunas bibliotecas de sistema, + asi como en la forma de una biblioteca incorporada de archivos + planos) almacena parejas clave/valor (a diferencia de los + registros completos soportados por las bases de datos + relacionales). + </para> + <note> + <para> + Sin embargo, el soporte de dbm se considera obsoleto y es + recomendable que use las + <link linkend="ref.dba">funciones de la capa de abstracción de + bases de datos (estilo-dbm)</link> en su lugar. + </para> + </note> + ¬e.pecl-php5; + </section> + + <section id="dbm.required"> + &reftitle.required; + <para> + Para usar estas funciones es necesario compilar PHP con soporte + para una base de datos base. Consulte la <link + linkend="dba.requirements">lista</link> de bases de datos + soportadas. + </para> + </section> + + &reference.dbm.configure; + + <section id="dbm.runtime"> + &reftitle.runtime; + &no.config; + </section> + + <section id="dbm.resources"> + &reftitle.resources; + <para> + La función <function>dbmopen</function> devuelve un + identificador de base de datos que es usado por las demás + funciones dbm. + </para> + </section> + + <section id="dbm.constants"> + &reftitle.constants; + &no.constants; + </section> + + <section id="dbm.examples"> + &reftitle.examples; + <para> + <example> + <title>Ejemplo de DBM</title> + <programlisting role="php"> +<![CDATA[ +<?php + +$dbm = dbmopen("lastseen", "w"); +if (dbmexists($dbm, $id_usuario)) { + $last_seen = dbmfetch($dbm, $id_usuario); } else { - dbminsert($dbm, $idusuario, time()); + dbminsert($dbm, $id_usuario, time()); } -do_stuff(); -dbmreplace($dbm, $idusuario, time()); +hacer_algo(); +dbmreplace($dbm, $id_usuario, time()); dbmclose($dbm); -</programlisting></example> - </para> + +?> +]]> + </programlisting> + </example> + </para> + </section> </partintro> &reference.dbm.functions; @@ -43,10 +101,12 @@ sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil -sgml-default-dtd-file:"../manual.ced" +sgml-default-dtd-file:"../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 --> - http://cvs.php.net/diff.php/phpdoc-es/reference/dbm/functions/dblist.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/dbm/functions/dblist.xml diff -u phpdoc-es/reference/dbm/functions/dblist.xml:1.1 phpdoc-es/reference/dbm/functions/dblist.xml:1.2 --- phpdoc-es/reference/dbm/functions/dblist.xml:1.1 Sun Apr 14 20:13:28 2002 +++ phpdoc-es/reference/dbm/functions/dblist.xml Tue Jun 1 23:38:36 2004 @@ -1,17 +1,32 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/dbm.xml, last change in rev 1.2 --> -<!-- last change to 'dblist' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.4 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/dbm.xml, last change in rev 1.2 --> <refentry id="function.dblist"> <refnamediv> <refname>dblist</refname> - <refpurpose>describe la librería compatible dbm que se está usando</refpurpose> + <refpurpose> + Describe la biblioteca compatible con DBM usada + </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> - <type>string</type><methodname>dblist</methodname> - <void/> + <type>string</type><methodname>dblist</methodname> + <void/> </methodsynopsis> + <para> + <example> + <title>Obtener la información en la línea de + comandos</title> + <programlisting role="shell"> +<![CDATA[ +[marcus@zaphod marcus]$ php -r 'echo dblist();' +This is GDBM version 1.8.0, as of May 19, 1999. +]]> + </programlisting> + </example> + </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/dbm/functions/dbmopen.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/dbm/functions/dbmopen.xml diff -u phpdoc-es/reference/dbm/functions/dbmopen.xml:1.1 phpdoc-es/reference/dbm/functions/dbmopen.xml:1.2 --- phpdoc-es/reference/dbm/functions/dbmopen.xml:1.1 Sun Apr 14 20:13:29 2002 +++ phpdoc-es/reference/dbm/functions/dbmopen.xml Tue Jun 1 23:38:36 2004 @@ -1,37 +1,52 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/dbm.xml, last change in rev 1.2 --> -<!-- last change to 'dbmopen' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.4 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/dbm.xml, last change in rev 1.2 --> <refentry id="function.dbmopen"> <refnamediv> <refname>dbmopen</refname> - <refpurpose>abre una base de datos dbm</refpurpose> + <refpurpose>Abre una base de datos DBM</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> - <type>int</type><methodname>dbmopen</methodname> - <methodparam><type>string</type><parameter>fichero</parameter></methodparam> - <methodparam><type>string</type><parameter>indicadores</parameter></methodparam> + <type>resource</type><methodname>dbmopen</methodname> + <methodparam><type>string</type><parameter>nombre_archivo</parameter></methodparam> + <methodparam><type>string</type><parameter>banderas</parameter></methodparam> </methodsynopsis> <para> - El primer argumento es el nombre con sendero completo del archivo dbm que - se va a abrir y el segundo es el modo de apertura, que puede ser "r", "n", - "c" o "w", que significan sólo lectura, nuevo (implica lectura/escritura - y suele truncar una base de datos si ya existía con ese nombre), crear - (implica lectura/escritura, pero sin truncar la base de datos) y abrir - para lectura/escritura, respectivamente.</para> + El primer argumento es la ruta completa al nombre de archivo de + la base DBM a ser abierta, y el segundo es el modo de apertura de + archivo, el cual es uno de "r", "n", "c" o "w" para los modos de + sólo-lectura, nuevo (implica lectura-escritura, y muy + probablemente trunque una base de datos existente con el mismo + nombre), crear (implica lectura-escritura, y no truncará + una base de datos existente con el mismo nombre) y + lectura-escritura respectivamente. + </para> <para> - Devuelve un identificador que se pasa al resto de funciones dbm si tiene - éxito, o &false; si falla.</para> + Devuelve un identificador a ser pasado a las demás + funciones DBM en caso de éxito, o &false; si ocurre un + error. + </para> <para> - Si se utiliza el soporte de ndbm, este creará los archivos fichero.dir y - fichero.pag. gdbm sólo utiliza un archivo y lo mismo hace el soporte interno - de archivos de texto, mientras que el db de Berkeley crea un archivo fichero.db. - Nótese que el PHP hace su propio bloqueo de archivo sobre el que pudiera - realizar la propia librería dbm. El PHP no borra los archivos .lck que crea. - Los utiliza simplemente como i-nodos fijos en los que hacer el bloqueo. Para - más información sobre archivos dbm, vea las páginas man de su Unix o obtenga - el gdbm de GNU desde <filename role="url">ftp://prep.ai.mit.edu/pub/gnu</filename>.</para> + Si es usado el soporte NDBM, lo que hará NDBM en realidad + es crear los archivos <filename>nombre_archivo.dir</filename> y + <filename>nombre_archivo.pag</filename>. GDBM usa sólo un + archivo, asi como lo hace el soporte interno de archivos planos, + y la BD Berkeley crea un archivo + <filename>nombre_archivo.db</filename>. Note que PHP realiza su + propio bloqueo de archivos adicionalmente a cualquier bloqueo de + archivos que pueda ser efectuado por la biblioteca DBM misma. PHP + no elimina los archivos <filename>.lck</filename> que crea. Estos + archivos son usados simplemente como inodes fijos sobre los que + se realiza el bloqueo de archivos. Para más + información sobre los archivos DBM, consulte sus + páginas man Unix, u obtenga <ulink url="&url.gdbm;">GNU + GDBM</ulink>. + + </para> + ¬e.sm.uidcheck; </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/domxml/reference.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/domxml/reference.xml diff -u phpdoc-es/reference/domxml/reference.xml:1.2 phpdoc-es/reference/domxml/reference.xml:1.3 --- phpdoc-es/reference/domxml/reference.xml:1.2 Mon Apr 15 20:30:25 2002 +++ phpdoc-es/reference/domxml/reference.xml Tue Jun 1 23:38:36 2004 @@ -1,115 +1,764 @@ <?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.15 Maintainer: lboshell Status: ready --> <reference id="ref.domxml"> - <title>Funciones de DOM XML</title> + <title>Funciones DOM XML</title> <titleabbrev>DOM XML</titleabbrev> <partintro> - &warn.experimental; - <simpara> - Estas funciones son disponibles solamente si PHP fué configurado - con <option role="configure">--with-dom=[DIR]</option>, usando al - libreria de XML de GNOME. Usted va a necesitar como mínimo - libxml-2.0.0 (la versión beta no trabajará). - Estas functiones fueron añadidas en PHP4. - </simpara> - <simpara> - Este module define las siguientes constantes: - </simpara> - <table> - <title>Constantes de XML</title> - <tgroup cols="3"> - <thead> - <row> - <entry>Constante</entry> - <entry>Valor</entry> - <entry>Descripción</entry> - </row> - </thead> - <tbody> - <row> - <entry>XML_ELEMENT_NODE</entry> - <entry>1</entry> - <entry></entry> - </row> - <row> - <entry>XML_ATTRIBUTE_NODE</entry> - <entry>2</entry> - <entry></entry> - </row> - <row> - <entry>XML_TEXT_NODE</entry> - <entry>3</entry> - <entry></entry> - </row> - <row> - <entry>XML_CDATA_SECTION_NODE</entry> - <entry>4</entry> - <entry></entry> - </row> - <row> - <entry>XML_ENTITY_REF_NODE</entry> - <entry>5</entry> - <entry></entry> - </row> - <row> - <entry>XML_ENTITY_NODE</entry> - <entry>6</entry> - <entry></entry> - </row> - <row> - <entry>XML_PI_NODE</entry> - <entry>7</entry> - <entry></entry> - </row> - <row> - <entry>XML_COMMENT_NODE</entry> - <entry>8</entry> - <entry></entry> - </row> - <row> - <entry>XML_DOCUMENT_NODE</entry> - <entry>9</entry> - <entry></entry> - </row> - <row> - <entry>XML_DOCUMENT_TYPE_NODE</entry> - <entry>10</entry> - <entry></entry> - </row> - <row> - <entry>XML_DOCUMENT_FRAG_NODE</entry> - <entry>11</entry> - <entry></entry> - </row> - <row> - <entry>XML_NOTATION_NODE</entry> - <entry>12</entry> - <entry></entry> - </row> - <row> - <entry>XML_GLOBAL_NAMESPACE</entry> - <entry>1</entry> - <entry></entry> - </row> - <row> - <entry>XML_LOCAL_NAMESPACE</entry> - <entry>2</entry> - <entry></entry> - </row> - </tbody> - </tgroup> - </table> - <simpara> - Este modulo define un número de clases. Las funciones de DOM XML - devuelven un árbol conteniendo la structura del documento XML, - en el cual cada nodo es un objecto perteneciente a una de estas clases. - </simpara> + <section id="domxml.intro"> + &reftitle.intro; + &warn.experimental; + <para> + La extensión DOM XML ha sido re-estructurada en PHP 4.3.0 + para mayor compatibilidad con el estándar DOM. La + extensión aun contiene varias funciones viejas, pero ellas + ya no deben ser usadas. En particular, las funciones que no son + orientadas a objetos deben evitarse. + </para> + <para> + La extensión le permite operar sobre un documento XML con + la API DOM. También ofrece una función + <function>domxml_xmltree</function> para convertir el documento + XML completo en un árbol de objetos PHP. Actualmente, este + árbol debe ser considerado como de sólo-escritura - + es posible modificarlo, pero tal cosa no tendría sentido + ya que <function>DomDocument_dump_mem</function> no puede + aplicarse sobre él. Por lo tanto, si desea leer un archivo + XML y escribir una versión modificada, use + <function>DomDocument_create_element</function>, + <function>DomDocument_create_text_node</function>, + <function>set_attribute</function>, etc. y finalmente la + función <function>DomDocument_dump_mem</function>. + </para> + </section> + + <section id="domxml.requirements"> + &reftitle.required; + <para> + Esta extensión hace uso de la <ulink + url="&url.domxml;">biblioteca GNOME XML</ulink>. Descargue e + instale esta biblioteca. Necesita por lo menos + libxml-2.4.14. Para usar las características DOM XSLT, + puede usar la <ulink url="&url.libxslt;">biblioteca + libxslt</ulink> y las adiciones EXSLT de <ulink + url="&url.exslt;">&url.exslt;</ulink>. Descargue e instale estas + bibliotecas si planea usar las características XSLT (y las + mejoras). Necesita por lo menos libxslt-1.0.18. + </para> + </section> + + &reference.domxml.configure; + + <section id="domxml.deprecated"> + <title>Funciones obsoletas</title> + <para> + Existen varias funciones que no tienen lugar en el + estándar DOM y no deberían seguir siendo + usadas. Estas funciones son listadas en la siguiente tabla. La + función <function>DomNode_append_child</function> ha + cambiado su comportamiento. Ahora agrega un hijo y no un + hermano. Si esto afecta su aplicación, use la + función <function>DomNode_append_sibling</function>, la + cual no hace parte del conjunto DOM. + </para> + <para> + <table> + <title>Funciones obsoletas y sus reemplazos</title> + <tgroup cols="2"> + <thead> + <row> + <entry>Función antigua</entry> + <entry>Función nueva</entry> + </row> + </thead> + <tbody> + <row> + <entry>xmldoc</entry> + <entry><function>domxml_open_mem</function></entry> + </row> + <row> + <entry>xmldocfile</entry> + <entry><function>domxml_open_file</function></entry> + </row> + <row> + <entry>domxml_new_xmldoc</entry> + <entry><function>domxml_new_doc</function></entry> + </row> + <row> + <entry>domxml_dump_mem</entry> + <entry><function>DomDocument_dump_mem</function></entry> + </row> + <row> + <entry>domxml_dump_mem_file</entry> + <entry><function>DomDocument_dump_file</function></entry> + </row> + <row> + <entry>DomDocument_dump_mem_file</entry> + <entry><function>DomDocument_dump_file</function></entry> + </row> + <row> + <entry>DomDocument_add_root</entry> + <entry><function>DomDocument_create_element</function> seguido + por <function>DomNode_append_child</function></entry> + </row> + <row> + <entry>DomDocument_dtd</entry> + <entry><function>DomDocument_doctype</function></entry> + </row> + <row> + <entry>DomDocument_root</entry> + <entry><function>DomDocument_document_element</function></entry> + </row> + <row> + <entry>DomDocument_children</entry> + <entry><function>DomNode_child_nodes</function></entry> + </row> + <row> + <entry>DomDocument_imported_node</entry> + <entry>No hay reemplazo.</entry> + </row> + <row> + <entry>DomNode_add_child</entry> + <entry>Crear un nuevo nodo, p.ej. con + <function>DomDocument_create_element</function> y agregarlo + con <function>DomNode_append_child</function>. + </entry> + </row> + <row> + <entry>DomNode_children</entry> + <entry><function>DomNode_child_nodes</function></entry> + </row> + <row> + <entry>DomNode_parent</entry> + <entry><function>DomNode_parent_node</function></entry> + </row> + <row> + <entry>DomNode_new_child</entry> + <entry>Crear un nuevo nodo, p.ej. con + <function>DomDocument_create_element</function> y agregarlo + con <function>DomNode_append_child</function>. + </entry> + </row> + <row> + <entry>DomNode_set_content</entry> + <entry>Crear un nuevo nodo, p.ej. con + <function>DomDocument_create_text_node</function> y agregarlo + con <function>DomNode_append_child</function>. + </entry> + </row> + <row> + <entry>DomNode_get_content</entry> + <entry>El contenido es solo un nodo de texto y puede + consultarse con <function>DomNode_child_nodes</function>. + </entry> + </row> + <row> + <entry>DomNode_set_content</entry> + <entry>El contenido es solo un nodo de texto y puede ser + agregado con <function>DomNode_append_child</function>. + </entry> + </row> + </tbody> + </tgroup> + </table> + </para> + </section> + + &reference.domxml.constants; + + <section id="domxml.classes"> + <title>Clases</title> + <para> + La API del módulo sigue el estándar DOM de Nivel 2 + tan fielmente como es posible. Por consiguiente, la API es + completamente orientada a objetos. Es una buena idea tener el + estándar DOM a la mano cuando se usa este + módulo. Aunque la API es orientada a objetos, existen + varias funciones que pueden ser llamadas en una forma no + orientada a objetos, pasando el objeto sobre el que debe operarse + como primer argumento. Estas funciones existen principalmente + para conservar la compatibilidad con versiones anteriores de esta + extensión, y no deberían ser usadas cuando se creen + nuevos scripts. + </para> + <para> + Esta API difiere de la API DOM oficial en dos formas. Primero, + todos los atributos de clase son implementados como funciones con + el mismo nombre. En segundo lugar, los nombres de funciones + siguen la convención de nombres de PHP. esto quiere decir + que una función DOM llamada lastChild() será + escrita como last_child(). + </para> + <para> + Este módulo define un número de clases, que son + listados - incluyendo sus métodos - en las siguientes + tablas. Las clases con un equivalente en el estándar DOM + son llamadas DOMxxx. + </para> + + <para> + <table> + <title>Lista de clases</title> + <tgroup cols="2"> + <thead> + <row> + <entry>Nombre de clase</entry> + <entry>Clases padre</entry> + </row> + </thead> + <tbody> + <row> + <entry>DomAttribute</entry> + <entry>DomNode</entry> + </row> + <row> + <entry>DomCData</entry> + <entry>DomNode</entry> + </row> + <row> + <entry>DomComment</entry> + <entry>DomCData : DomNode</entry> + </row> + <row> + <entry>DomDocument</entry> + <entry>DomNode</entry> + </row> + <row> + <entry>DomDocumentType</entry> + <entry>DomNode</entry> + </row> + <row> + <entry>DomElement</entry> + <entry>DomNode</entry> + </row> + <row> + <entry>DomEntity</entry> + <entry>DomNode</entry> + </row> + <row> + <entry>DomEntityReference</entry> + <entry>DomNode</entry> + </row> + <row> + <entry>DomProcessingInstruction</entry> + <entry>DomNode</entry> + </row> + <row> + <entry>DomText</entry> + <entry>DomCData : DomNode</entry> + </row> + <row> + <entry>Parser</entry> + <entry>Por el momento aun se llama DomParser</entry> + </row> + <row> + <entry>XPathContext</entry> + <entry></entry> + </row> + </tbody> + </tgroup> + </table> + </para> + + <para> + <table> + <title>Clase DomDocument (DomDocument : DomNode)</title> + <tgroup cols="3"> + <thead> + <row> + <entry>Nombre de método</entry> + <entry>Nombre de función</entry> + <entry>Anotación</entry> + </row> + </thead> + <tbody> + <row> + <entry>doctype</entry> + <entry><function>DomDocument_doctype</function></entry> + <entry></entry> + </row> + <row> + <entry>document_element</entry> + <entry><function>DomDocument_document_element</function></entry> + <entry></entry> + </row> + <row> + <entry>create_element</entry> + <entry><function>DomDocument_create_element</function></entry> + <entry></entry> + </row> + <row> + <entry>create_text_node</entry> + <entry><function>DomDocument_create_text_node</function></entry> + <entry></entry> + </row> + <row> + <entry>create_comment</entry> + <entry><function>DomDocument_create_comment</function></entry> + <entry></entry> + </row> + <row> + <entry>create_cdata_section</entry> + <entry><function>DomDocument_create_cdata_section</function></entry> + <entry></entry> + </row> + <row> + <entry>create_processing_instruction</entry> + <entry><function>DomDocument_create_processing_instruction</function></entry> + <entry></entry> + </row> + <row> + <entry>create_attribute</entry> + <entry><function>DomDocument_create_attribute</function></entry> + <entry></entry> + </row> + <row> + <entry>create_entity_reference</entry> + <entry><function>DomDocument_create_entity_reference</function></entry> + <entry></entry> + </row> + <row> + <entry>get_elements_by_tagname</entry> + <entry><function>DomDocument_get_elements_by_tagname</function></entry> + <entry></entry> + </row> + <row> + <entry>get_element_by_id</entry> + <entry><function>DomDocument_get_element_by_id</function></entry> + <entry></entry> + </row> + <row> + <entry>dump_mem</entry> + <entry><function>DomDocument_dump_mem</function></entry> + <entry>no hace parte del estándar DOM</entry> + </row> + <row> + <entry>dump_file</entry> + <entry><function>DomDocument_dump_file</function></entry> + <entry>no hace parte del estándar DOM</entry> + </row> + <row> + <entry>html_dump_mem</entry> + <entry><function>DomDocument_html_dump_mem</function></entry> + <entry>no hace parte del estándar DOM</entry> + </row> + <row> + <entry>xpath_init</entry> + <entry>xpath_init</entry> + <entry>no hace parte del estándar DOM</entry> + </row> + <row> + <entry>xpath_new_context</entry> + <entry>xpath_new_context</entry> + <entry>no hace parte del estándar DOM</entry> + </row> + <row> + <entry>xptr_new_context</entry> + <entry>xptr_new_context</entry> + <entry>no hace parte del estándar DOM</entry> + </row> + </tbody> + </tgroup> + </table> + </para> + + <para> + <table> + <title>Clase DomElement (DomElement : DomNode)</title> + <tgroup cols="3"> + <thead> + <row> + <entry>Nombre de método</entry> + <entry>Nombre de función</entry> + <entry>Anotación</entry> + </row> + </thead> + <tbody> + <row> + <entry>tagname</entry> + <entry><function>DomElement_tagname</function></entry> + <entry></entry> + </row> + <row> + <entry>get_attribute</entry> + <entry><function>DomElement_get_attribute</function></entry> + <entry></entry> + </row> + <row> + <entry>set_attribute</entry> + <entry><function>DomElement_set_attribute</function></entry> + <entry></entry> + </row> + <row> + <entry>remove_attribute</entry> + <entry><function>DomElement_remove_attribute</function></entry> + <entry></entry> + </row> + <row> + <entry>get_attribute_node</entry> + <entry><function>DomElement_get_attribute_node</function></entry> + <entry></entry> + </row> +<!-- This function is not implemented at all for the time being + <row> + <entry>set_attribute_node</entry> + <entry><function>DomElement_set_attribute_node</function></entry> + <entry></entry> + </row> +--> + + <row> + <entry>get_elements_by_tagname</entry> + <entry><function>DomElement_get_elements_by_tagname</function></entry> + <entry></entry> + </row> + <row> + <entry>has_attribute</entry> + <entry><function>DomElement_has_attribute</function></entry> + <entry></entry> + </row> + </tbody> + </tgroup> + </table> + </para> + + <para> + <table> + <title>DomNode class</title> + <tgroup cols="2"> + <thead> + <row> + <entry>Nombre de método</entry> + <entry>Anotación</entry> + </row> + </thead> + <tbody> + <row> + <entry><function>DomNode_node_name</function></entry> + <entry></entry> + </row> + <row> + <entry><function>DomNode_node_value</function></entry> + <entry></entry> + </row> + <row> + <entry><function>DomNode_node_type</function></entry> + <entry></entry> + </row> + <row> + <entry><function>DomNode_last_child</function></entry> + <entry></entry> + </row> + <row> + <entry><function>DomNode_first_child</function></entry> + <entry></entry> + </row> + <row> + <entry><function>DomNode_child_nodes</function></entry> + <entry></entry> + </row> + <row> + <entry><function>DomNode_previous_sibling</function></entry> + <entry></entry> + </row> + <row> + <entry><function>DomNode_next_sibling</function></entry> + <entry></entry> + </row> + <row> + <entry><function>DomNode_parent_node</function></entry> + <entry></entry> + </row> + <row> + <entry><function>DomNode_owner_document</function></entry> + <entry></entry> + </row> + <row> + <entry><function>DomNode_insert_before</function></entry> + <entry></entry> + </row> + <row> + <entry><function>DomNode_append_child</function></entry> + <entry></entry> + </row> + <row> + <entry><function>DomNode_append_sibling</function></entry> + <entry>No se encuentra en el estándar DOM. Esta + función emula el comportamiento antiguo de + <function>DomNode_append_child</function>.</entry> + </row> + <row> + <entry><function>DomNode_remove_child</function></entry> + <entry></entry> + </row> + <row> + <entry><function>DomNode_has_child_nodes</function></entry> + <entry></entry> + </row> + <row> + <entry><function>DomNode_has_attributes</function></entry> + <entry></entry> + </row> + <row> + <entry><function>DomNode_clone_node</function></entry> + <entry></entry> + </row> + <row> + <entry><function>DomNode_attributes</function></entry> + <entry></entry> + </row> + <row> + <entry><function>DomNode_unlink_node</function></entry> + <entry>No se encuentra en el estándar DOM</entry> + </row> + <row> + <entry><function>DomNode_replace_node</function></entry> + <entry>No se encuentra en el estándar DOM</entry> + </row> + <row> + <entry><function>DomNode_set_content</function></entry> + <entry>No se encuentra en el estándar DOM, obsoleta</entry> + </row> + <row> + <entry><function>DomNode_get_content</function></entry> + <entry>No se encuentra en el estándar DOM, obsoleta</entry> + </row> + <row> + <entry><function>DomNode_dump_node</function></entry> + <entry>No se encuentra en el estándar DOM</entry> + </row> + <row> + <entry><function>DomNode_is_blank_node</function></entry> + <entry>No se encuentra en el estándar DOM</entry> + </row> + </tbody> + </tgroup> + </table> + </para> + + <para> + <table> + <title>Clase DomAttribute (DomAttribute : DomNode)</title> + <tgroup cols="3"> + <thead> + <row> + <entry>Nombre de método</entry> + <entry></entry> + <entry>Anotación</entry> + </row> + </thead> + <tbody> + <row> + <entry>name</entry> + <entry><function>DomAttribute_name</function></entry> + <entry></entry> + </row> + <row> + <entry>value</entry> + <entry><function>DomAttribute_value</function></entry> + <entry></entry> + </row> + <row> + <entry>specified</entry> + <entry><function>DomAttribute_specified</function></entry> + <entry></entry> + </row> + </tbody> + </tgroup> + </table> + </para> + + <para> + <table> + <title>Clase DomProcessingInstruction (DomProcessingInstruction : + DomNode)</title> + <tgroup cols="3"> + <thead> + <row> + <entry>Nombre de método</entry> + <entry>Nombre de función</entry> + <entry>Anotación</entry> + </row> + </thead> + <tbody> + <row> + <entry>target</entry> + <entry><function>DomProcessingInstruction_target</function></entry> + <entry></entry> + </row> + <row> + <entry>data</entry> + <entry><function>DomProcessingInstruction_data</function></entry> + <entry></entry> + </row> + </tbody> + </tgroup> + </table> + </para> + + <para> + <table> + <title>Clase Parser</title> + <tgroup cols="3"> + <thead> + <row> + <entry>Nombre de método</entry> + <entry>Nombre de función</entry> + <entry>Anotación</entry> + </row> + </thead> + <tbody> + <row> + <entry>add_chunk</entry> + <entry><function>Parser_add_chunk</function></entry> + <entry></entry> + </row> + <row> + <entry>end</entry> + <entry><function>Parser_end</function></entry> + <entry></entry> + </row> + </tbody> + </tgroup> + </table> + </para> + + <para> + <table> + <title>Clase XPathContext</title> + <tgroup cols="3"> + <thead> + <row> + <entry>Nombre de método</entry> + <entry>Nombre de función</entry> + <entry>Anotación</entry> + </row> + </thead> + <tbody> + <row> + <entry>eval</entry> + <entry><function>XPathContext_eval</function></entry> + <entry></entry> + </row> + <row> + <entry>eval_expression</entry> + <entry><function>XPathContext_eval_expression</function></entry> + <entry></entry> + </row> + <row> + <entry>register_ns</entry> + <entry><function>XPathContext_register_ns</function></entry> + <entry></entry> + </row> + </tbody> + </tgroup> + </table> + </para> + + <para> + <table> + <title>Clase DomDocumentType (DomDocumentType : DomNode)</title> + <tgroup cols="3"> + <thead> + <row> + <entry>Nombre de método</entry> + <entry>Nombre de función</entry> + <entry>Anotación</entry> + </row> + </thead> + <tbody> + <row> + <entry>name</entry> + <entry><function>DomDocumentType_name</function></entry> + <entry></entry> + </row> + <row> + <entry>entities</entry> + <entry><function>DomDocumentType_entities</function></entry> + <entry></entry> + </row> + <row> + <entry>notations</entry> + <entry><function>DomDocumentType_notations</function></entry> + <entry></entry> + </row> + <row> + <entry>public_id</entry> + <entry><function>DomDocumentType_public_id</function></entry> + <entry></entry> + </row> + <row> + <entry>system_id</entry> + <entry><function>DomDocumentType_system_id</function></entry> + <entry></entry> + </row> + <row> + <entry>internal_subset</entry> + <entry><function>DomDocumentType_internal_subset</function></entry> + <entry></entry> + </row> + </tbody> + </tgroup> + </table> + </para> + + <para> + La clase DomDtd es derivada de DomNode. DomComment es derivada de + DomCData. + </para> + </section> + + <section id="domxml.examples"> + &reftitle.examples; + <para> + Varios ejemplos en esta referencia requieren una cadena XML. En + lugar de repetir esta cadena en cada ejemplo, será puesta + en un archivo el cual será incluido en cada ejemplo. Este + archivo de inclusión es mostrado en la siguiente + sección de ejemplo. Alternativamente, es posible crear un + documento XML y leerlo con + <function>DomDocument_open_file</function>. + </para> + <para> + <example> + <title>Archivo de inclusión ejemplo.inc con una cadena + XML</title> + <programlisting role="php"> +<![CDATA[ +<?php +$cadena_xml = "<?xml version='1.0' standalone='yes'?> +<!DOCTYPE chapter SYSTEM '/share/sgml/Norman_Walsh/db3xml10/db3xml10.dtd' +[ <!ENTITY sp \"spanish\"> +]> +<!-- lsfj --> +<chapter language='en'><title language='en'>Title</title> + <para language='ge'> + &sp; + <!-- comment --> + <informaltable ID='findme' language='&sp;'> + <tgroup cols='3'> + <tbody> + <row><entry>a1</entry><entry +morerows='1'>b1</entry><entry>c1</entry></row> +<row><entry>a2</entry><entry>c2</entry></row> + <row><entry>a3</entry><entry>b3</entry><entry>c3</entry></row> + </tbody> + </tgroup> + </informaltable> + </para> +</chapter>"; +?> +]]> + </programlisting> + </example> + </para> + </section> </partintro> &reference.domxml.functions; </reference> - <!-- Keep this comment at the end of the file Local variables: mode: sgml @@ -126,5 +775,7 @@ sgml-local-catalogs:nil sgml-local-ecat-files:nil End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 --> - http://cvs.php.net/diff.php/phpdoc-es/reference/filesystem/ini.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-es/reference/filesystem/ini.xml diff -u phpdoc-es/reference/filesystem/ini.xml:1.3 phpdoc-es/reference/filesystem/ini.xml:1.4 --- phpdoc-es/reference/filesystem/ini.xml:1.3 Sat May 1 15:49:30 2004 +++ phpdoc-es/reference/filesystem/ini.xml Tue Jun 1 23:38:36 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.7 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.8 Maintainer: lboshell Status: ready --> <section id="filesystem.configuration"> &reftitle.runtime; &extension.runtime; @@ -80,7 +80,7 @@ deshabilitar esta característica en tiempo de compilación usando el parámetro de configuración <link - linkend="install.configure.disable-url-fopen-wrapper"><parameter>--disable-url-fopen-wrapper</parameter></link>. + linkend="configure.disable-url-fopen-wrapper"><parameter>--disable-url-fopen-wrapper</parameter></link>. </para> </note> <warning> http://cvs.php.net/diff.php/phpdoc-es/reference/filesystem/functions/pclose.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/filesystem/functions/pclose.xml diff -u phpdoc-es/reference/filesystem/functions/pclose.xml:1.1 phpdoc-es/reference/filesystem/functions/pclose.xml:1.2 --- phpdoc-es/reference/filesystem/functions/pclose.xml:1.1 Sun Apr 14 20:13:59 2002 +++ phpdoc-es/reference/filesystem/functions/pclose.xml Tue Jun 1 23:38:36 2004 @@ -1,31 +1,33 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/filesystem.xml, last change in rev 1.1 --> -<!-- last change to 'pclose' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.4 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 --> <refentry id="function.pclose"> <refnamediv> <refname>pclose</refname> - <refpurpose>Cierra el fichero de proceso apuntado</refpurpose> + <refpurpose>Cierra un apuntador de archivo de proceso</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> - <type>int</type><methodname>pclose</methodname> - <methodparam><type>int</type><parameter>fp</parameter></methodparam> + <type>int</type><methodname>pclose</methodname> + <methodparam><type>resource</type><parameter>gestor</parameter></methodparam> </methodsynopsis> - <para> - Cierra un fichero que representa un tuberia (pipe) - abierta con <function>popen</function>. - </para> - <para> - El apuntador al fichero debe ser válido, y debe haber sido devuelto - por una llamada con éxito a <function>popen</function>. + <para> + Cierra un apuntador de archivo a un pipe abierto por + <function>popen</function>. + </para> + <para> + El apuntador de archivo debe ser válido, y debe haber sido + devuelto por un llamado satisfactorio a + <function>popen</function>. </para> <para> - Devuelve el estado de terminación del proceso que estaba - ejecutándose. + Devuelve el status de terminación del proceso que fue + ejecutado. </para> <para> - Ver también <function>popen</function>. + Vea también <function>popen</function>. </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/filesystem/functions/popen.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/filesystem/functions/popen.xml diff -u phpdoc-es/reference/filesystem/functions/popen.xml:1.1 phpdoc-es/reference/filesystem/functions/popen.xml:1.2 --- phpdoc-es/reference/filesystem/functions/popen.xml:1.1 Sun Apr 14 20:14:00 2002 +++ phpdoc-es/reference/filesystem/functions/popen.xml Tue Jun 1 23:38:36 2004 @@ -1,42 +1,80 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/filesystem.xml, last change in rev 1.1 --> -<!-- last change to 'popen' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.13 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 --> <refentry id="function.popen"> <refnamediv> <refname>popen</refname> - <refpurpose>Abre el fichero de proceso apuntado</refpurpose> + <refpurpose>Abre un apuntador de archivo de proceso</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> - <type>int</type><methodname>popen</methodname> - <methodparam><type>string</type><parameter>command</parameter></methodparam> - <methodparam><type>string</type><parameter>mode</parameter></methodparam> + <type>resource</type><methodname>popen</methodname> + <methodparam><type>string</type><parameter>comando</parameter></methodparam> + <methodparam><type>string</type><parameter>modo</parameter></methodparam> </methodsynopsis> - <para> - Abre una tubería (pipe) a un proceso ejecutado haciendo fork al - comando dado por command + <para> + Abre un pipe con un proceso ejecutado al bifurcar el comando dado + en el primer parámetro. </para> - <para> - Devuelve un apuntador de fichero idéntico al devuelto por - <function>fopen</function>, excepto que este es unidireccional (sólo - puede usarse o para leer o para escribir) y debe cerrarse con - <function>pclose</function>. Este apuntador puede usarse con + <para> + Devuelve un apuntador de archivo idéntico al devuelto por + <function>fopen</function>, con la excepción de que es + unidireccional (puede ser usado sólo para lectura o + escritura) y debe ser cerrado con + <function>pclose</function>. Este apuntador puede ser usado con <function>fgets</function>, <function>fgetss</function>, y - <function>fputs</function>. + <function>fwrite</function>. + </para> + <para> + Si ocurre un error, se devuelve &false;. </para> + <note> + <para> + Si está buscando soporte bidireccional (en dos + vías), use <function>proc_open</function>. + </para> + </note> <para> - Si ocurre un error, devuelve &false;. + <example> + <title>Ejemplo de <function>popen</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +$gestor = popen("/bin/ls", "r"); +?> +]]> + </programlisting> + </example> </para> <para> + Si el comando a ser ejecutado no es encontrado, se devuelve un + recurso válido. Esto puede parecer extraño, pero + tiene sentido; le permite acceder a cualquier mensaje de error + devuelto por el intérprete de comandos: <informalexample> <programlisting role="php"> -$fp = popen ("/bin/ls", "r"); +<![CDATA[ +<?php +error_reporting(E_ALL); + +/* Agregar redireccion de modo que tengamos stderr. */ +$gestor = popen('/ruta/hacia/basura 2>&1', 'r'); +echo "'$gestor'; " . gettype($gestor) . "\n"; +$read = fread($gestor, 2096); +echo $read; +pclose($gestor); +?> +]]> </programlisting> </informalexample> </para> + ¬e.exec-path; + &warn.sm.exec; <para> - Ver también <function>pclose</function>. + Vea también <function>pclose</function>, + <function>fopen</function>, y <function>proc_open</function>. </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/filesystem/functions/readfile.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/filesystem/functions/readfile.xml diff -u phpdoc-es/reference/filesystem/functions/readfile.xml:1.1 phpdoc-es/reference/filesystem/functions/readfile.xml:1.2 --- phpdoc-es/reference/filesystem/functions/readfile.xml:1.1 Sun Apr 14 20:14:00 2002 +++ phpdoc-es/reference/filesystem/functions/readfile.xml Tue Jun 1 23:38:36 2004 @@ -1,59 +1,42 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/filesystem.xml, last change in rev 1.1 --> -<!-- last change to 'readfile' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.6 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 --> <refentry id="function.readfile"> <refnamediv> <refname>readfile</refname> - <refpurpose>Muestra el contenido de un fichero</refpurpose> + <refpurpose>Imprime un archivo</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> - <type>int</type><methodname>readfile</methodname> - <methodparam><type>string</type><parameter>filename</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter> - use_include_path - </parameter></methodparam> + <type>int</type><methodname>readfile</methodname> + <methodparam><type>string</type><parameter>nombre_archivo</parameter></methodparam> + <methodparam choice="opt"><type>bool</type><parameter>usar_ruta_inclusion</parameter></methodparam> + <methodparam choice="opt"><type>resource</type><parameter>contexto</parameter></methodparam> </methodsynopsis> <para> - Lee un fichero y lo escribe a la salida estándar. + Lee un archivo y lo escribe al búfer de salida. </para> <para> - Devuelve el número de bytes leidos del fichero. Si ocurre un - error, se devuelve &false; y a menos que la función fuera llamada - como @readfile, se imprime un mensaje de error + Devuelve el número de bytes leídos desde el + archivo. Si ocurre un error, &false; es devuelto y a menos que la + función sea llamada como @<function>readfile</function>, + se genera un mensaje de error. </para> + &tip.fopen-wrapper; <para> - Si <parameter>filename</parameter> comienzo por "http://" - (no es sensible a mayúsculas), se abre una conexión HTTP 1.0 al - servidor especificado y el texto de la respuesta se escribe - a la salida estándar. + Puede usar el segundo parámetro opcional y definirlo como + &true;, si desea buscar por el archivo en <link + linkend="ini.include-path">include_path</link>, también. </para> <para> - No maneja redirecciones HTTP, por eso se debe incluir una barra - final cuando se trata de directorios. - </para> - <para> - Si <parameter>filename</parameter> comienza con "ftp://" - (no es sensible a mayúsculas), se abre una conexión ftp al servidor - especificado y el fichero que se pide se escribe en la salida estándar. - Si el servidor no soporta ftp en modo pasivo, la función fallará. - </para> - <para> - Si <parameter>filename</parameter> no comienza con ninguna de las - cadenas anteriores, el fichero será abierto del sistema de ficheros - y su contenido escrito en la salida estándar. - </para> - <para> - Se puede usar el segundo parámetro opcional y fijarlo a "1", si - si quieres que también se busque el fichero en el <link - linkend="ini.include-path">include_path</link>. - </para> - <para> - Ver también <function>fpassthru</function>, + Vea también <function>fpassthru</function>, <function>file</function>, <function>fopen</function>, - <function>include</function>, <function>require</function>, y - <function>virtual</function>. + <function>include</function>, <function>require</function>, + <function>virtual</function>, + <function>file_get_contents</function>, y <xref + linkend="wrappers"/>. </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/pdf/reference.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-es/reference/pdf/reference.xml diff -u phpdoc-es/reference/pdf/reference.xml:1.5 phpdoc-es/reference/pdf/reference.xml:1.6 --- phpdoc-es/reference/pdf/reference.xml:1.5 Sun Jan 25 01:44:19 2004 +++ phpdoc-es/reference/pdf/reference.xml Tue Jun 1 23:38:37 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <!-- EN-Revision: 1.15 Maintainer: jtacon Status: ready --> <reference id="ref.pdf"> <title>Funciones PDF</title> @@ -8,20 +8,21 @@ <partintro> <section id="pdf.intro"> &reftitle.intro; - <simpara> Las funciones PDF en PHP pueden crear archivos PDF - utilizando la librería PDFlib creada por - <ulink url="&url.pdflib.merz;">Thomas Merz</ulink>. + <simpara> + Las funciones PDF en PHP pueden crear archivos PDF utilizando la + biblioteca PDFlib creada por <ulink + url="&url.pdflib.merz;">Thomas Merz</ulink>. </simpara> <simpara> - La documentación en esta sección solamente es una - descripción de las funciones de la librería PDFlib - y no debería considerarse una referencia exhaustiva. - Se ha de consultar la documentación incluida en el - código fuente de la distribución de PDFlib para - una completa y detallada explicación de cada - función. Proporciona muy buena descripción - de las capacidades de PDFlib y contiene actualizada la - documentación de todas las funciones. + La documentación en esta sección solamente es una + descripción de las funciones de la biblioteca PDFlib y no + debería considerarse una referencia exhaustiva. Se ha de + consultar la documentación incluida en el código + fuente de la distribución de PDFlib para una completa y + detallada explicación de cada función. Proporciona + muy buena descripción de las capacidades de PDFlib y + contiene actualizada la documentación de todas las + funciones. </simpara> <simpara> Todas las funciones de PDFlib y del módulo PHP tienen @@ -38,15 +39,15 @@ </simpara> <simpara> Hay que tener en cuenta que la mayoría de las - funciones PDF requieren un primer parámetro + funciones PDF requieren un primer parámetro <parameter>pdfdoc</parameter>. En los siguientes - <link linkend="pdf.examples">ejemplos</link> hay más - información. + <link linkend="pdf.examples">ejemplos</link> hay más + información. </simpara> <note> <simpara> - Si se está interesado en alternativas de generadores gratis de PDF que - no utilizen liberías externas PDF, mirar + Si se está interesado en alternativas de generadores gratis de PDF que + no utilizen liberías externas PDF, mirar <link linkend="faq.using.freepdf"> este FAQ relacionado</link>. </simpara> </note> @@ -55,18 +56,18 @@ <section id="pdf.requirements"> &reftitle.required; <para> - PDFlib está disponible para descargar en + PDFlib está disponible para descargar en <ulink url="&url.pdf;">&url.pdf;</ulink>, pero requiere la compra de una licencia para uso comercial. Se requieren - las librerías <ulink url="&url.jpeg;">JPEG</ulink> y <ulink + las bibliotecas <ulink url="&url.jpeg;">JPEG</ulink> y <ulink url="&url.tiff;">TIFF</ulink> para compilar esta extensión. </para> <section id="pdf.oldlibs.hints"> <title>Compatibilidad con versiones antiguas de PDFlib</title> <simpara> - Cualquier versión de PHP después del 9 de Marzo del 2000 no - soporta versiones de PDFlib anteriores a la 3.0. + Cualquier versión de PHP después del 9 de Marzo + del 2000 no soporta versiones de PDFlib anteriores a la 3.0. </simpara> <simpara> PDFlib 3.0 o superior es compatible desde PHP 3.0.19 en adelante. @@ -85,15 +86,15 @@ <section id="pdf.oldlibs.confusion"> <title>Confusiones con antiguas versiones de PDFlib</title> <simpara> - Desde PHP 4.0.5, la extensión PHP para PDFlib es oficialmente + Desde PHP 4.0.5, la extensión PHP para PDFlib es oficialmente soportada por PDFlib GmbH. Esto significa que todas las funciones descritas en el manual de PDFlib (V3.00 o superior) son - soportadas por PHP 4 con el mismo funcionamiento y parámetros. - Sólo los valores devueltos pueden variar en el manual - PDFlib, ya que PHP adoptó la convención de devolver &false;. - Por razones de compatibilidad, PDFlib aún soporta las antiguas - funciones, pero deberían reemplazarlas en sus nuevas versiones. - PDFlib GmbH no dará soporte a cualquier problema causado + soportadas por PHP 4 con el mismo funcionamiento y parámetros. + Sólo los valores devueltos pueden variar en el manual + PDFlib, ya que PHP adoptó la convención de devolver &false;. + Por razones de compatibilidad, PDFlib aún soporta las antiguas + funciones, pero deberían reemplazarlas en sus nuevas versiones. + PDFlib GmbH no dará soporte a cualquier problema causado por el uso de estas funciones obsoletas. </simpara> <para> @@ -102,7 +103,7 @@ <tgroup cols="2"> <thead> <row> - <entry>Antigua función</entry> + <entry>Antigua función</entry> <entry>Reemplazo</entry> </row> </thead> @@ -118,67 +119,67 @@ <row> <entry><function>pdf_get_annotation</function></entry> <entry><function>pdf_get_bookmark</function> - utilizando los mismos parámetros.</entry> + utilizando los mismos parámetros.</entry> </row> <row> <entry><function>pdf_get_font</function></entry> <entry><function>pdf_get_value</function> pasando - <literal>"font"</literal> como segundo parámetro.</entry> + <literal>"font"</literal> como segundo parámetro.</entry> </row> <row> <entry><function>pdf_get_fontsize</function></entry> <entry><function>pdf_get_value</function> pasando - <literal>"fontsize"</literal> como segundo parámetro.</entry> + <literal>"fontsize"</literal> como segundo parámetro.</entry> </row> <row> <entry><function>pdf_get_fontname</function></entry> <entry><function>pdf_get_parameter</function> pasando - <literal>"fontname"</literal> como segundo parámetro.</entry> + <literal>"fontname"</literal> como segundo parámetro.</entry> </row> <row> <entry><function>pdf_set_info_creator</function></entry> <entry><function>pdf_set_info</function> pasando - <literal>"Creator"</literal> como segundo parámetro.</entry> + <literal>"Creator"</literal> como segundo parámetro.</entry> </row> <row> <entry><function>pdf_set_info_title</function></entry> <entry><function>pdf_set_info</function> pasando - <literal>"Title"</literal> como segundo parámetro.</entry> + <literal>"Title"</literal> como segundo parámetro.</entry> </row> <row> <entry><function>pdf_set_info_subject</function></entry> <entry><function>pdf_set_info</function> pasando - <literal>"Subject"</literal> como segundo parámetro.</entry> + <literal>"Subject"</literal> como segundo parámetro.</entry> </row> <row> <entry><function>pdf_set_info_author</function></entry> <entry><function>pdf_set_info</function> pasando - <literal>"Author"</literal> como segundo parámetro.</entry> + <literal>"Author"</literal> como segundo parámetro.</entry> </row> <row> <entry><function>pdf_set_info_keywords</function></entry> <entry><function>pdf_set_info</function> pasando - <literal>"Keywords"</literal> como segundo parámetro.</entry> + <literal>"Keywords"</literal> como segundo parámetro.</entry> </row> <row> <entry><function>pdf_set_leading</function></entry> <entry><function>pdf_set_value</function> pasando - <literal>"leading"</literal> como segundo parámetro.</entry> + <literal>"leading"</literal> como segundo parámetro.</entry> </row> <row> <entry><function>pdf_set_text_rendering</function></entry> <entry><function>pdf_set_value</function> pasando - <literal>"textrendering"</literal> como segundo parámetro.</entry> + <literal>"textrendering"</literal> como segundo parámetro.</entry> </row> <row> <entry><function>pdf_set_text_rise</function></entry> <entry><function>pdf_set_value</function> pasando - <literal>"textrise"</literal> como segundo parámetro.</entry> + <literal>"textrise"</literal> como segundo parámetro.</entry> </row> <row> <entry><function>pdf_set_horiz_scaling</function></entry> <entry><function>pdf_set_value</function> pasando - <literal>"horizscaling"</literal> como segundo parámetro.</entry> + <literal>"horizscaling"</literal> como segundo parámetro.</entry> </row> <row> <entry><function>pdf_set_text_matrix</function></entry> @@ -187,64 +188,64 @@ <row> <entry><function>pdf_set_char_spacing</function></entry> <entry><function>pdf_set_value</function> pasando - <literal>"charspacing"</literal> como segundo parámetro.</entry> + <literal>"charspacing"</literal> como segundo parámetro.</entry> </row> <row> <entry><function>pdf_set_word_spacing</function></entry> <entry><function>pdf_set_value</function> pasando - <literal>"wordspacing"</literal> como segundo parámetro.</entry> + <literal>"wordspacing"</literal> como segundo parámetro.</entry> </row> <row> <entry><function>pdf_set_transition</function></entry> <entry><function>pdf_set_parameter</function> pasando - <literal>"transition"</literal> como segundo parámetro.</entry> + <literal>"transition"</literal> como segundo parámetro.</entry> </row> <row> <entry><function>pdf_open</function></entry> - <entry><function>pdf_new</function> más la subsecuente llamada de + <entry><function>pdf_new</function> más la subsecuente llamada de <function>pdf_open_file</function></entry> </row> <row> <entry><function>pdf_set_font</function></entry> - <entry><function>pdf_findfont</function> más la subsecuente llamada de + <entry><function>pdf_findfont</function> más la subsecuente llamada de <function>pdf_setfont</function></entry> </row> <row> <entry><function>pdf_set_duration</function></entry> <entry><function>pdf_set_value</function> pasando - <literal>"duration"</literal> como segundo parámetro.</entry> + <literal>"duration"</literal> como segundo parámetro.</entry> </row> <row> <entry><function>pdf_open_gif</function></entry> <entry><function>pdf_open_image_file</function> pasando - <literal>"gif"</literal> como segundo parámetro.</entry> + <literal>"gif"</literal> como segundo parámetro.</entry> </row> <row> <entry><function>pdf_open_jpeg</function></entry> <entry><function>pdf_open_image_file</function> pasando - <literal>"jpeg"</literal> como segundo parámetro.</entry> + <literal>"jpeg"</literal> como segundo parámetro.</entry> </row> <row> <entry><function>pdf_open_tiff</function></entry> <entry><function>pdf_open_image_file</function> pasando - <literal>"tiff"</literal> como segundo parámetro.</entry> + <literal>"tiff"</literal> como segundo parámetro.</entry> </row> <row> <entry><function>pdf_open_png</function></entry> <entry><function>pdf_open_image_file</function> pasando - <literal>"png"</literal> como segundo parámetro.</entry> + <literal>"png"</literal> como segundo parámetro.</entry> </row> <row> <entry><function>pdf_get_image_width</function></entry> <entry><function>pdf_get_value</function> pasando - <literal>"imagewidth"</literal> como segundo parámetro y la - imágen como tercer parámetro.</entry> + <literal>"imagewidth"</literal> como segundo parámetro y la + imágen como tercer parámetro.</entry> </row> <row> <entry><function>pdf_get_image_height</function></entry> <entry><function>pdf_get_value</function> pasando - <literal>"imageheight"</literal> como segundo parámetro y la - imágen como tercer parámetro.</entry> + <literal>"imageheight"</literal> como segundo parámetro y la + imágen como tercer parámetro.</entry> </row> </tbody> </tgroup> @@ -255,13 +256,13 @@ <section id="pdf.examples"> &reftitle.examples; <simpara> - La mayoría de las funciones son bastante fáciles de utilizar. - La parte más difícil probablemente es la creación de un primer - documento PDF. El siguiente ejemplo debería ayudar para + La mayoría de las funciones son bastante fáciles de utilizar. + La parte más difícil probablemente es la creación de un primer + documento PDF. El siguiente ejemplo debería ayudar para comenzar. El ejemplo crea el archivo <filename>test.pdf</filename> - en una página. La página contiene el texto "Times Roman outlined" + en una página. La página contiene el texto "Times Roman outlined" en un contorno, con fuente de 30pt. - El texto también está subrayado. + El texto también está subrayado. </simpara> <para> <example> @@ -312,18 +313,18 @@ </example> </para> <para> - La distrubución PDFlib contiene un ejemplo - más complejo para crear un reloj analógico en - una página. Aquí se utiliza el método de - creación en memoria de PDFlib para no tener que crear + La distrubución PDFlib contiene un ejemplo + más complejo para crear un reloj analógico en + una página. Aquí se utiliza el método de + creación en memoria de PDFlib para no tener que crear un archivo temporal. El ejemplo se ha convertido a PHP - desde uno de PDFlib (El mismo ejemplo está - disponible en la documentación <link + desde uno de PDFlib (El mismo ejemplo está + disponible en la documentación <link linkend="ref.cpdf">ClibPDF</link>.) </para> <para> <example> - <title>Ejemplo pdfclock de la distribución PDFlib</title> + <title>Ejemplo pdfclock de la distribución PDFlib</title> <programlisting role="php"> <![CDATA[ <?php @@ -441,11 +442,11 @@ &reftitle.seealso; <note> <para> - Una alternativa de módulo PHP para la creación + Una alternativa de módulo PHP para la creación de documentos PDF basados en - <ulink url="&url.cpdf;">FastIO's</ulink> ClibPDF está - disponible. Mirar la sección <link linkend="ref.cpdf">ClibPDF</link> - para más detalles. Tener en cuenta que <link + <ulink url="&url.cpdf;">FastIO's</ulink> ClibPDF está + disponible. Mirar la sección <link linkend="ref.cpdf">ClibPDF</link> + para más detalles. Tener en cuenta que <link linkend="ref.cpdf">ClibPDF</link> tiene alguna diferencia con PDFlib. </para> </note> http://cvs.php.net/diff.php/phpdoc-es/reference/session/ini.xml?r1=1.8&r2=1.9&ty=u Index: phpdoc-es/reference/session/ini.xml diff -u phpdoc-es/reference/session/ini.xml:1.8 phpdoc-es/reference/session/ini.xml:1.9 --- phpdoc-es/reference/session/ini.xml:1.8 Sun Mar 28 17:37:50 2004 +++ phpdoc-es/reference/session/ini.xml Tue Jun 1 23:38:37 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> -<!-- EN-Revision: 1.22 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.9 $ --> +<!-- EN-Revision: 1.23 Maintainer: lboshell Status: ready --> <section id="session.configuration"> &reftitle.runtime; &extension.runtime; @@ -554,7 +554,7 @@ <simpara> Para PHP 4.1.2 o versiones anteriores, éste valor es habilitado al compilar con <link - linkend="install.configure.enable-trans-sid"> + linkend="configure.enable-trans-sid"> <literal>--enable-trans-sid</literal></link>. A partir de PHP 4.2.0, la característica trans-sid es compilada siempre. </simpara> http://cvs.php.net/diff.php/phpdoc-es/security/cgi-bin.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/security/cgi-bin.xml diff -u phpdoc-es/security/cgi-bin.xml:1.2 phpdoc-es/security/cgi-bin.xml:1.3 --- phpdoc-es/security/cgi-bin.xml:1.2 Sat Jan 31 10:47:21 2004 +++ phpdoc-es/security/cgi-bin.xml Tue Jun 1 23:38:37 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.2 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.3 Maintainer: lboshell Status: ready --> <!-- splitted from ./index.xml, last change in rev 1.66 --> <sect1 id="security.cgi-bin"> <title>Instalación como un binario CGI</title> @@ -76,15 +76,14 @@ acceder a cualquier documento protegido en el servidor web. </simpara> <simpara> - En PHP, la configuración de tiempo de - compilación <link - linkend="install.configure.enable-force-cgi-redirect">--enable-force-cgi-redirect</link> + En PHP, la configuración de tiempo de compilación + <link + linkend="configure.enable-force-cgi-redirect">--enable-force-cgi-redirect</link> y las directivas de configuración en tiempo de - ejecución - <link linkend="ini.doc-root">doc_root</link> y <link - linkend="ini.user-dir">user_dir</link> pueden ser usadas para - prevenir este tipo de ataques, si el árbol de documentos - del servidor llegara a tener directorio alguno con + ejecución <link linkend="ini.doc-root">doc_root</link> y + <link linkend="ini.user-dir">user_dir</link> pueden ser usadas + para prevenir este tipo de ataques, si el árbol de + documentos del servidor llegara a tener directorio alguno con restricciones de acceso. Consulte las siguientes secciones para una explicación detallada de las diferentes combinaciones. @@ -104,9 +103,9 @@ opciones de configuración. Si su servidor web no le permite hacer redireccionamientos, o el servidor no tiene una forma de comunicarle al binario PHP que la petición de - redireccionamiento es segura, puede especificar la - opción <link - linkend="install.configure.enable-force-cgi-redirect">--enable-force-cgi-redirect</link> + redireccionamiento es segura, puede especificar la opción + <link + linkend="configure.enable-force-cgi-redirect">--enable-force-cgi-redirect</link> en el script de configuración. Aun así debe asegurarse de que sus scripts PHP no dependan de alguna forma especial de hacer llamados al script, ya sea directamente @@ -259,12 +258,12 @@ lanzamiento del intérprete. </para> <para> - Para lograr que PHP gestione correctamente la información de - <envar>PATH_INFO</envar> y <envar>PATH_TRANSLATED</envar> con + Para lograr que PHP gestione correctamente la información + de <envar>PATH_INFO</envar> y <envar>PATH_TRANSLATED</envar> con este tipo de configuración, el intérprete PHP debe - haber sido compilado con la opción de - configuración <link - linkend="install.configure.enable-discard-path">--enable-discard-path</link>. + haber sido compilado con la opción de configuración + <link + linkend="configure.enable-discard-path">--enable-discard-path</link>. </para> </sect2> http://cvs.php.net/co.php/phpdoc-es/reference/domxml/configure.xml?r=1.1&p=1 Index: phpdoc-es/reference/domxml/configure.xml +++ phpdoc-es/reference/domxml/configure.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.6 Maintainer: lboshell Status: ready --> <section id="domxml.installation"> &reftitle.install; <para> Esta extensión se encuentra disponible únicamente si PHP fue configurado con <option role="configure">--with-dom[=DIR]</option>. Agregue <option role="configure">--with-dom-xslt[=DIR]</option> para incluir soporte para DOM XSLT. DIR es el directorio de instalación de libxslt. Agregue <option role="configure">--with-dom-exslt[=DIR]</option> para incluir soporte para DOM EXSLT, en donde DIR es el directorio de instalación de libexslt. </para> <note> <title>Nota para Usuarios de Win32</title> <simpara> Para habilitar este módulo en un entorno Windows, debe copiar un archivo adicional desde el directorio de archivos DLL del paquete binario de PHP/Win32 a la carpeta SYSTEM32 en su máquina Windows (Ej: <filename class="directory">C:\WINNT\SYSTEM32</filename> o <filename class="directory">C:\WINDOWS\SYSTEM32</filename>). Para PHP <= 4.2.0, copie <filename>libxml2.dll</filename>, para PHP >= 4.3.0 copie <filename>iconv.dll</filename> desde el directorio de archivos DLL a su directorio SYSTEM32. </simpara> </note> </section> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/phpdoc-es/reference/domxml/constants.xml?r=1.1&p=1 Index: phpdoc-es/reference/domxml/constants.xml +++ phpdoc-es/reference/domxml/constants.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.4 Maintainer: lboshell Status: ready --> <section id="domxml.constants"> &reftitle.constants; &extension.constants; <table> <title>Constantes XML</title> <tgroup cols="3"> <thead> <row> <entry>Constante</entry> <entry>Valor</entry> <entry>Descripción</entry> </row> </thead> <tbody> <row> <entry> <constant>XML_ELEMENT_NODE</constant> (<type>integer</type>) </entry> <entry>1</entry> <entry>El nodo es un elemento</entry> </row> <row> <entry> <constant>XML_ATTRIBUTE_NODE</constant> (<type>integer</type>) </entry> <entry>2</entry> <entry>El nodo es un atributo</entry> </row> <row> <entry> <constant>XML_TEXT_NODE</constant> (<type>integer</type>) </entry> <entry>3</entry> <entry>El nodo es un segmento de texto</entry> </row> <row> <entry> <constant>XML_CDATA_SECTION_NODE</constant> (<type>integer</type>) </entry> <entry>4</entry> <entry></entry> </row> <row> <entry> <constant>XML_ENTITY_REF_NODE</constant> (<type>integer</type>) </entry> <entry>5</entry> <entry></entry> </row> <row> <entry> <constant>XML_ENTITY_NODE</constant> (<type>integer</type>) </entry> <entry>6</entry> <entry>El nodo es una entidad como &nbsp;</entry> </row> <row> <entry> <constant>XML_PI_NODE</constant> (<type>integer</type>) </entry> <entry>7</entry> <entry>El nodo es una instrucción de procesamiento</entry> </row> <row> <entry> <constant>XML_COMMENT_NODE</constant> (<type>integer</type>) </entry> <entry>8</entry> <entry>El nodo es un comentario</entry> </row> <row> <entry> <constant>XML_DOCUMENT_NODE</constant> (<type>integer</type>) </entry> <entry>9</entry> <entry>El nodo es un documento</entry> </row> <row> <entry> <constant>XML_DOCUMENT_TYPE_NODE</constant> (<type>integer</type>) </entry> <entry>10</entry> <entry></entry> </row> <row> <entry> <constant>XML_DOCUMENT_FRAG_NODE</constant> (<type>integer</type>) </entry> <entry>11</entry> <entry></entry> </row> <row> <entry> <constant>XML_NOTATION_NODE</constant> (<type>integer</type>) </entry> <entry>12</entry> <entry></entry> </row> <row> <entry> <constant>XML_GLOBAL_NAMESPACE</constant> (<type>integer</type>) </entry> <entry>1</entry> <entry></entry> </row> <row> <entry> <constant>XML_LOCAL_NAMESPACE</constant> (<type>integer</type>) </entry> <entry>2</entry> <entry></entry> </row> <!-- Following constants copied from appendices/reserved.constants.domxml.xml. no someone familiar with this extension should do further work. --> <row> <entry> <constant>XML_HTML_DOCUMENT_NODE</constant> (<type>integer</type>) </entry> <entry></entry> <entry></entry> </row> <row> <entry> <constant>XML_DTD_NODE</constant> (<type>integer</type>) </entry> <entry></entry> <entry></entry> </row> <row> <entry> <constant>XML_ELEMENT_DECL_NODE</constant> (<type>integer</type>) </entry> <entry></entry> <entry></entry> </row> <row> <entry> <constant>XML_ATTRIBUTE_DECL_NODE</constant> (<type>integer</type>) </entry> <entry></entry> <entry></entry> </row> <row> <entry> <constant>XML_ENTITY_DECL_NODE</constant> (<type>integer</type>) </entry> <entry></entry> <entry></entry> </row> <row> <entry> <constant>XML_NAMESPACE_DECL_NODE</constant> (<type>integer</type>) </entry> <entry></entry> <entry></entry> </row> <row> <entry> <constant>XML_ATTRIBUTE_CDATA</constant> (<type>integer</type>) </entry> <entry></entry> <entry></entry> </row> <row> <entry> <constant>XML_ATTRIBUTE_ID</constant> (<type>integer</type>) </entry> <entry></entry> <entry></entry> </row> <row> <entry> <constant>XML_ATTRIBUTE_IDREF</constant> (<type>integer</type>) </entry> <entry></entry> <entry></entry> </row> <row> <entry> <constant>XML_ATTRIBUTE_IDREFS</constant> (<type>integer</type>) </entry> <entry></entry> <entry></entry> </row> <row> <entry> <constant>XML_ATTRIBUTE_ENTITY</constant> (<type>integer</type>) </entry> <entry></entry> <entry></entry> </row> <row> <entry> <constant>XML_ATTRIBUTE_NMTOKEN</constant> (<type>integer</type>) </entry> <entry></entry> <entry></entry> </row> <row> <entry> <constant>XML_ATTRIBUTE_NMTOKENS</constant> (<type>integer</type>) </entry> <entry></entry> <entry></entry> </row> <row> <entry> <constant>XML_ATTRIBUTE_ENUMERATION</constant> (<type>integer</type>) </entry> <entry></entry> <entry></entry> </row> <row> <entry> <constant>XML_ATTRIBUTE_NOTATION</constant> (<type>integer</type>) </entry> <entry></entry> <entry></entry> </row> <row> <entry> <constant>XPATH_UNDEFINED</constant> (<type>integer</type>) </entry> <entry></entry> <entry></entry> </row> <row> <entry> <constant>XPATH_NODESET</constant> (<type>integer</type>) </entry> <entry></entry> <entry></entry> </row> <row> <entry> <constant>XPATH_BOOLEAN</constant> (<type>integer</type>) </entry> <entry></entry> <entry></entry> </row> <row> <entry> <constant>XPATH_NUMBER</constant> (<type>integer</type>) </entry> <entry></entry> <entry></entry> </row> <row> <entry> <constant>XPATH_STRING</constant> (<type>integer</type>) </entry> <entry></entry> <entry></entry> </row> <row> <entry> <constant>XPATH_POINT</constant> (<type>integer</type>) </entry> <entry></entry> <entry></entry> </row> <row> <entry> <constant>XPATH_RANGE</constant> (<type>integer</type>) </entry> <entry></entry> <entry></entry> </row> <row> <entry> <constant>XPATH_LOCATIONSET</constant> (<type>integer</type>) </entry> <entry></entry> <entry></entry> </row> <row> <entry> <constant>XPATH_USERS</constant> (<type>integer</type>) </entry> <entry></entry> <entry></entry> </row> <row> <entry> <constant>XPATH_NUMBER</constant> (<type>integer</type>) </entry> <entry></entry> <entry></entry> </row> </tbody> </tgroup> </table> </section> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->
http://cvs.php.net/diff.php/phpdoc-es/language/operators.xml?r1=1.11&r2=1.12&ty=u Index: phpdoc-es/language/operators.xml diff -u phpdoc-es/language/operators.xml:1.11 phpdoc-es/language/operators.xml:1.12 --- phpdoc-es/language/operators.xml:1.11 Tue May 25 00:53:36 2004 +++ phpdoc-es/language/operators.xml Tue Jun 1 23:38:36 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.11 $ --> -<!-- EN-Revision: 1.67 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.12 $ --> +<!-- EN-Revision: 1.68 Maintainer: lboshell Status: ready --> <chapter id="language.operators"> <title>Operadores</title> <simpara> @@ -947,7 +947,7 @@ ]]> </programlisting> <simpara> - Dado que <literal>$cosa</literal> es un <type>object</type> de + Dado que <varname>$cosa</varname> es un <type>object</type> de tipo A, pero no de tipo B, sólo el bloque dependiente del tipo A será ejecutado: </simpara> http://cvs.php.net/diff.php/phpdoc-es/appendices/ini.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/appendices/ini.xml diff -u phpdoc-es/appendices/ini.xml:1.1 phpdoc-es/appendices/ini.xml:1.2 --- phpdoc-es/appendices/ini.xml:1.1 Mon May 31 07:17:29 2004 +++ phpdoc-es/appendices/ini.xml Tue Jun 1 23:38:36 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.2 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.3 Maintainer: lboshell Status: ready --> <appendix id="ini"> <title>Lista de directivas de núcleo en &php.ini;</title> @@ -266,8 +266,8 @@ memoria disponible en un servidor. Para usar esta directiva, es necesario habilitarla en tiempo de compilación. De modo que la línea de llamado a configure debe incluir: - <literal>--enable-memory-limit</literal>. Note que es - necesario definir su valor a -1 si no desea imponer un + <option role="configure">--enable-memory-limit</option>. Note + que es necesario definir su valor a -1 si no desea imponer un límite a su memoria. </para> <para> @@ -842,10 +842,10 @@ solamente si su valor no es vacío. Si PHP es configurado con &safemode;, no se servirán archivos por fuera de este directorio. Si PHP no fue compilado con - FORCE_REDIRECT, usted DEBERÍA definir doc_root en caso - de estar usando PHP como CGI bajo cualquier servidor web - (diferente a IIS). La alternativa es usar el parámetro - de configuración <link + FORCE_REDIRECT, usted <emphasis>debería</emphasis> + definir doc_root en caso de estar usando PHP como CGI bajo + cualquier servidor web (diferente a IIS). La alternativa es + usar el parámetro de configuración <link linkend="ini.cgi.force-redirect">cgi.force_redirect</link> descrito más adelante. </para> @@ -860,8 +860,8 @@ <listitem> <para> El nombre base del directorio usado en un directorio de - usuario para archivos <literal>PHP</literal>, por ejemplo - <literal>public_html</literal>. + usuario para archivos PHP, por ejemplo <filename + class="directory">public_html</filename>. </para> </listitem> </varlistentry> @@ -928,14 +928,16 @@ PHP es ejecutado como CGI bajo la mayoría de servidores web. Si no es definido, PHP habilita este parámetro por defecto. Es posible deshabilitarlo - <emphasis>BAJO SU PROPIO RIESGO</emphasis>. + <emphasis>bajo su propio riesgo</emphasis>. </para> <note> <para> - Usuarios de Windows: ES POSIBLE deshabilitar esta - opción para IIS, de hecho, ES NECESARIO hacerlo. Para - lograr que OmniHTTPD o Xitami funcionen es NECESARIO - deshabilitar este parámetro. + Usuarios de Windows: Es <emphasis>posible</emphasis> + deshabilitar esta opción para IIS, de hecho, es + <emphasis>necesario</emphasis> hacerlo. Para lograr que + OmniHTTPD o Xitami funcionen es + <emphasis>necesario</emphasis> deshabilitar este + parámetro. </para> </note> </listitem> @@ -950,14 +952,15 @@ <para> Si cgi.force_redirect se encuentra habilitado, y no está usando servidores web Apache o Netscape - (iPlanet), PUEDE que necesite definir un nombre de variable - de entorno que PHP use para saber si está bien - continuar con la ejecución. + (iPlanet), <emphasis>puede</emphasis> que necesite definir un + nombre de variable de entorno que PHP use para saber si + está bien continuar con la ejecución. </para> <note> <para> - Definir esta variable PUEDE causar problemas de seguridad, - ASEGÚRESE DE SABER LO QUE HACE PRIMERO. + Definir esta variable <emphasis>puede</emphasis> causar + problemas de seguridad, <emphasis>asegúrese de saber + lo que hace primero</emphasis>. </para> </note> </listitem> @@ -1069,9 +1072,9 @@ <para> El directorio temporal usado para almacenar archivos cuando se realiza carga de archivos. Debe tener permisos de - escritura para el usuario bajo el que <literal>PHP</literal> - es ejecutado. Si no se especifica, PHP usará el valor - predeterminado del sistema. + escritura para el usuario bajo el que PHP es ejecutado. Si no + se especifica, PHP usará el valor predeterminado del + sistema. </para> </listitem> </varlistentry> http://cvs.php.net/diff.php/phpdoc-es/appendices/reserved.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-es/appendices/reserved.xml diff -u phpdoc-es/appendices/reserved.xml:1.6 phpdoc-es/appendices/reserved.xml:1.7 --- phpdoc-es/appendices/reserved.xml:1.6 Tue May 25 00:53:36 2004 +++ phpdoc-es/appendices/reserved.xml Tue Jun 1 23:38:36 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.41 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.42 Maintainer: lboshell Status: ready --> <appendix id="reserved"> <title>Lista de Palabras Reservadas</title> http://cvs.php.net/diff.php/phpdoc-es/faq/installation.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-es/faq/installation.xml diff -u phpdoc-es/faq/installation.xml:1.6 phpdoc-es/faq/installation.xml:1.7 --- phpdoc-es/faq/installation.xml:1.6 Thu May 13 14:41:54 2004 +++ phpdoc-es/faq/installation.xml Tue Jun 1 23:38:36 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.27 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.28 Maintainer: lboshell Status: ready --> <chapter id="faq.installation"> <title>Instalación</title> <titleabbrev>Instalación</titleabbrev> @@ -31,12 +31,12 @@ </question> <answer> <para> - Por defecto, en Unix debe estar - en <filename>/usr/local/lib</filename>, lo que - es, <filename><ruta-instalacion>/lib</filename>. La + Por defecto, en Unix debe estar en + <filename>/usr/local/lib</filename>, lo que es, + <filename><ruta-instalacion>/lib</filename>. La mayoría de personas querrán modificar éste valor en tiempo de compilación con la bandera <link - linkend="install.configure.with-config-file-path">--with-config-file-path</link>. + linkend="configure.with-config-file-path">--with-config-file-path</link>. Podría, por ejemplo, definirla como: <programlisting role="shell"> --with-config-file-path=/etc http://cvs.php.net/diff.php/phpdoc-es/reference/dbm/reference.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/dbm/reference.xml diff -u phpdoc-es/reference/dbm/reference.xml:1.2 phpdoc-es/reference/dbm/reference.xml:1.3 --- phpdoc-es/reference/dbm/reference.xml:1.2 Mon Apr 15 20:30:16 2002 +++ phpdoc-es/reference/dbm/reference.xml Tue Jun 1 23:38:36 2004 @@ -1,32 +1,90 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<reference id="ref.dbm"> - <title>Funciones dbm</title> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.9 Maintainer: lboshell Status: ready --> + <reference id="ref.dbm"> + <title>Funciones DBM Functions [obsoletas]</title> <titleabbrev>DBM</titleabbrev> <partintro> - <simpara> - Estas funcione le permiten almacenar registros en una base de - datos estilo dbm. Este tipo de base de datos (soportadas por - las librerías db y gdbm de Berkeley, así como por algunas - librerías del sistema y por una librería incluída para acceso - a archivos de texto) guarda pares clave/valor (en oposición a - los registros completos soportados por las bases de datos - relacionales).</simpara> - <para> - <example> - <title>ejemplo de dbm</title> - <programlisting role="php"> -$dbm = dbmopen("vistoya", "w"); -if (dbmexists($dbm, $idusuario)) { - $visto_ya = dbmfetch($dbm, $idusuario); + <section id="dbm.intro"> + &reftitle.intro; + <para> + Estas funciones le permiten almacenar registros almacenados en + una base de datos estilo-dbm. Este tipo de base de datos + (soportado por la BD de Berkeley, <ulink + url="&url.gdbm;">GDBM</ulink>, y algunas bibliotecas de sistema, + asi como en la forma de una biblioteca incorporada de archivos + planos) almacena parejas clave/valor (a diferencia de los + registros completos soportados por las bases de datos + relacionales). + </para> + <note> + <para> + Sin embargo, el soporte de dbm se considera obsoleto y es + recomendable que use las + <link linkend="ref.dba">funciones de la capa de abstracción de + bases de datos (estilo-dbm)</link> en su lugar. + </para> + </note> + ¬e.pecl-php5; + </section> + + <section id="dbm.required"> + &reftitle.required; + <para> + Para usar estas funciones es necesario compilar PHP con soporte + para una base de datos base. Consulte la <link + linkend="dba.requirements">lista</link> de bases de datos + soportadas. + </para> + </section> + + &reference.dbm.configure; + + <section id="dbm.runtime"> + &reftitle.runtime; + &no.config; + </section> + + <section id="dbm.resources"> + &reftitle.resources; + <para> + La función <function>dbmopen</function> devuelve un + identificador de base de datos que es usado por las demás + funciones dbm. + </para> + </section> + + <section id="dbm.constants"> + &reftitle.constants; + &no.constants; + </section> + + <section id="dbm.examples"> + &reftitle.examples; + <para> + <example> + <title>Ejemplo de DBM</title> + <programlisting role="php"> +<![CDATA[ +<?php + +$dbm = dbmopen("lastseen", "w"); +if (dbmexists($dbm, $id_usuario)) { + $last_seen = dbmfetch($dbm, $id_usuario); } else { - dbminsert($dbm, $idusuario, time()); + dbminsert($dbm, $id_usuario, time()); } -do_stuff(); -dbmreplace($dbm, $idusuario, time()); +hacer_algo(); +dbmreplace($dbm, $id_usuario, time()); dbmclose($dbm); -</programlisting></example> - </para> + +?> +]]> + </programlisting> + </example> + </para> + </section> </partintro> &reference.dbm.functions; @@ -43,10 +101,12 @@ sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil -sgml-default-dtd-file:"../manual.ced" +sgml-default-dtd-file:"../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 --> - http://cvs.php.net/diff.php/phpdoc-es/reference/dbm/functions/dblist.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/dbm/functions/dblist.xml diff -u phpdoc-es/reference/dbm/functions/dblist.xml:1.1 phpdoc-es/reference/dbm/functions/dblist.xml:1.2 --- phpdoc-es/reference/dbm/functions/dblist.xml:1.1 Sun Apr 14 20:13:28 2002 +++ phpdoc-es/reference/dbm/functions/dblist.xml Tue Jun 1 23:38:36 2004 @@ -1,17 +1,32 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/dbm.xml, last change in rev 1.2 --> -<!-- last change to 'dblist' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.4 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/dbm.xml, last change in rev 1.2 --> <refentry id="function.dblist"> <refnamediv> <refname>dblist</refname> - <refpurpose>describe la librería compatible dbm que se está usando</refpurpose> + <refpurpose> + Describe la biblioteca compatible con DBM usada + </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> - <type>string</type><methodname>dblist</methodname> - <void/> + <type>string</type><methodname>dblist</methodname> + <void/> </methodsynopsis> + <para> + <example> + <title>Obtener la información en la línea de + comandos</title> + <programlisting role="shell"> +<![CDATA[ +[marcus@zaphod marcus]$ php -r 'echo dblist();' +This is GDBM version 1.8.0, as of May 19, 1999. +]]> + </programlisting> + </example> + </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/dbm/functions/dbmopen.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/dbm/functions/dbmopen.xml diff -u phpdoc-es/reference/dbm/functions/dbmopen.xml:1.1 phpdoc-es/reference/dbm/functions/dbmopen.xml:1.2 --- phpdoc-es/reference/dbm/functions/dbmopen.xml:1.1 Sun Apr 14 20:13:29 2002 +++ phpdoc-es/reference/dbm/functions/dbmopen.xml Tue Jun 1 23:38:36 2004 @@ -1,37 +1,52 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/dbm.xml, last change in rev 1.2 --> -<!-- last change to 'dbmopen' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.4 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/dbm.xml, last change in rev 1.2 --> <refentry id="function.dbmopen"> <refnamediv> <refname>dbmopen</refname> - <refpurpose>abre una base de datos dbm</refpurpose> + <refpurpose>Abre una base de datos DBM</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> - <type>int</type><methodname>dbmopen</methodname> - <methodparam><type>string</type><parameter>fichero</parameter></methodparam> - <methodparam><type>string</type><parameter>indicadores</parameter></methodparam> + <type>resource</type><methodname>dbmopen</methodname> + <methodparam><type>string</type><parameter>nombre_archivo</parameter></methodparam> + <methodparam><type>string</type><parameter>banderas</parameter></methodparam> </methodsynopsis> <para> - El primer argumento es el nombre con sendero completo del archivo dbm que - se va a abrir y el segundo es el modo de apertura, que puede ser "r", "n", - "c" o "w", que significan sólo lectura, nuevo (implica lectura/escritura - y suele truncar una base de datos si ya existía con ese nombre), crear - (implica lectura/escritura, pero sin truncar la base de datos) y abrir - para lectura/escritura, respectivamente.</para> + El primer argumento es la ruta completa al nombre de archivo de + la base DBM a ser abierta, y el segundo es el modo de apertura de + archivo, el cual es uno de "r", "n", "c" o "w" para los modos de + sólo-lectura, nuevo (implica lectura-escritura, y muy + probablemente trunque una base de datos existente con el mismo + nombre), crear (implica lectura-escritura, y no truncará + una base de datos existente con el mismo nombre) y + lectura-escritura respectivamente. + </para> <para> - Devuelve un identificador que se pasa al resto de funciones dbm si tiene - éxito, o &false; si falla.</para> + Devuelve un identificador a ser pasado a las demás + funciones DBM en caso de éxito, o &false; si ocurre un + error. + </para> <para> - Si se utiliza el soporte de ndbm, este creará los archivos fichero.dir y - fichero.pag. gdbm sólo utiliza un archivo y lo mismo hace el soporte interno - de archivos de texto, mientras que el db de Berkeley crea un archivo fichero.db. - Nótese que el PHP hace su propio bloqueo de archivo sobre el que pudiera - realizar la propia librería dbm. El PHP no borra los archivos .lck que crea. - Los utiliza simplemente como i-nodos fijos en los que hacer el bloqueo. Para - más información sobre archivos dbm, vea las páginas man de su Unix o obtenga - el gdbm de GNU desde <filename role="url">ftp://prep.ai.mit.edu/pub/gnu</filename>.</para> + Si es usado el soporte NDBM, lo que hará NDBM en realidad + es crear los archivos <filename>nombre_archivo.dir</filename> y + <filename>nombre_archivo.pag</filename>. GDBM usa sólo un + archivo, asi como lo hace el soporte interno de archivos planos, + y la BD Berkeley crea un archivo + <filename>nombre_archivo.db</filename>. Note que PHP realiza su + propio bloqueo de archivos adicionalmente a cualquier bloqueo de + archivos que pueda ser efectuado por la biblioteca DBM misma. PHP + no elimina los archivos <filename>.lck</filename> que crea. Estos + archivos son usados simplemente como inodes fijos sobre los que + se realiza el bloqueo de archivos. Para más + información sobre los archivos DBM, consulte sus + páginas man Unix, u obtenga <ulink url="&url.gdbm;">GNU + GDBM</ulink>. + + </para> + ¬e.sm.uidcheck; </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/domxml/reference.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/domxml/reference.xml diff -u phpdoc-es/reference/domxml/reference.xml:1.2 phpdoc-es/reference/domxml/reference.xml:1.3 --- phpdoc-es/reference/domxml/reference.xml:1.2 Mon Apr 15 20:30:25 2002 +++ phpdoc-es/reference/domxml/reference.xml Tue Jun 1 23:38:36 2004 @@ -1,115 +1,764 @@ <?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.15 Maintainer: lboshell Status: ready --> <reference id="ref.domxml"> - <title>Funciones de DOM XML</title> + <title>Funciones DOM XML</title> <titleabbrev>DOM XML</titleabbrev> <partintro> - &warn.experimental; - <simpara> - Estas funciones son disponibles solamente si PHP fué configurado - con <option role="configure">--with-dom=[DIR]</option>, usando al - libreria de XML de GNOME. Usted va a necesitar como mínimo - libxml-2.0.0 (la versión beta no trabajará). - Estas functiones fueron añadidas en PHP4. - </simpara> - <simpara> - Este module define las siguientes constantes: - </simpara> - <table> - <title>Constantes de XML</title> - <tgroup cols="3"> - <thead> - <row> - <entry>Constante</entry> - <entry>Valor</entry> - <entry>Descripción</entry> - </row> - </thead> - <tbody> - <row> - <entry>XML_ELEMENT_NODE</entry> - <entry>1</entry> - <entry></entry> - </row> - <row> - <entry>XML_ATTRIBUTE_NODE</entry> - <entry>2</entry> - <entry></entry> - </row> - <row> - <entry>XML_TEXT_NODE</entry> - <entry>3</entry> - <entry></entry> - </row> - <row> - <entry>XML_CDATA_SECTION_NODE</entry> - <entry>4</entry> - <entry></entry> - </row> - <row> - <entry>XML_ENTITY_REF_NODE</entry> - <entry>5</entry> - <entry></entry> - </row> - <row> - <entry>XML_ENTITY_NODE</entry> - <entry>6</entry> - <entry></entry> - </row> - <row> - <entry>XML_PI_NODE</entry> - <entry>7</entry> - <entry></entry> - </row> - <row> - <entry>XML_COMMENT_NODE</entry> - <entry>8</entry> - <entry></entry> - </row> - <row> - <entry>XML_DOCUMENT_NODE</entry> - <entry>9</entry> - <entry></entry> - </row> - <row> - <entry>XML_DOCUMENT_TYPE_NODE</entry> - <entry>10</entry> - <entry></entry> - </row> - <row> - <entry>XML_DOCUMENT_FRAG_NODE</entry> - <entry>11</entry> - <entry></entry> - </row> - <row> - <entry>XML_NOTATION_NODE</entry> - <entry>12</entry> - <entry></entry> - </row> - <row> - <entry>XML_GLOBAL_NAMESPACE</entry> - <entry>1</entry> - <entry></entry> - </row> - <row> - <entry>XML_LOCAL_NAMESPACE</entry> - <entry>2</entry> - <entry></entry> - </row> - </tbody> - </tgroup> - </table> - <simpara> - Este modulo define un número de clases. Las funciones de DOM XML - devuelven un árbol conteniendo la structura del documento XML, - en el cual cada nodo es un objecto perteneciente a una de estas clases. - </simpara> + <section id="domxml.intro"> + &reftitle.intro; + &warn.experimental; + <para> + La extensión DOM XML ha sido re-estructurada en PHP 4.3.0 + para mayor compatibilidad con el estándar DOM. La + extensión aun contiene varias funciones viejas, pero ellas + ya no deben ser usadas. En particular, las funciones que no son + orientadas a objetos deben evitarse. + </para> + <para> + La extensión le permite operar sobre un documento XML con + la API DOM. También ofrece una función + <function>domxml_xmltree</function> para convertir el documento + XML completo en un árbol de objetos PHP. Actualmente, este + árbol debe ser considerado como de sólo-escritura - + es posible modificarlo, pero tal cosa no tendría sentido + ya que <function>DomDocument_dump_mem</function> no puede + aplicarse sobre él. Por lo tanto, si desea leer un archivo + XML y escribir una versión modificada, use + <function>DomDocument_create_element</function>, + <function>DomDocument_create_text_node</function>, + <function>set_attribute</function>, etc. y finalmente la + función <function>DomDocument_dump_mem</function>. + </para> + </section> + + <section id="domxml.requirements"> + &reftitle.required; + <para> + Esta extensión hace uso de la <ulink + url="&url.domxml;">biblioteca GNOME XML</ulink>. Descargue e + instale esta biblioteca. Necesita por lo menos + libxml-2.4.14. Para usar las características DOM XSLT, + puede usar la <ulink url="&url.libxslt;">biblioteca + libxslt</ulink> y las adiciones EXSLT de <ulink + url="&url.exslt;">&url.exslt;</ulink>. Descargue e instale estas + bibliotecas si planea usar las características XSLT (y las + mejoras). Necesita por lo menos libxslt-1.0.18. + </para> + </section> + + &reference.domxml.configure; + + <section id="domxml.deprecated"> + <title>Funciones obsoletas</title> + <para> + Existen varias funciones que no tienen lugar en el + estándar DOM y no deberían seguir siendo + usadas. Estas funciones son listadas en la siguiente tabla. La + función <function>DomNode_append_child</function> ha + cambiado su comportamiento. Ahora agrega un hijo y no un + hermano. Si esto afecta su aplicación, use la + función <function>DomNode_append_sibling</function>, la + cual no hace parte del conjunto DOM. + </para> + <para> + <table> + <title>Funciones obsoletas y sus reemplazos</title> + <tgroup cols="2"> + <thead> + <row> + <entry>Función antigua</entry> + <entry>Función nueva</entry> + </row> + </thead> + <tbody> + <row> + <entry>xmldoc</entry> + <entry><function>domxml_open_mem</function></entry> + </row> + <row> + <entry>xmldocfile</entry> + <entry><function>domxml_open_file</function></entry> + </row> + <row> + <entry>domxml_new_xmldoc</entry> + <entry><function>domxml_new_doc</function></entry> + </row> + <row> + <entry>domxml_dump_mem</entry> + <entry><function>DomDocument_dump_mem</function></entry> + </row> + <row> + <entry>domxml_dump_mem_file</entry> + <entry><function>DomDocument_dump_file</function></entry> + </row> + <row> + <entry>DomDocument_dump_mem_file</entry> + <entry><function>DomDocument_dump_file</function></entry> + </row> + <row> + <entry>DomDocument_add_root</entry> + <entry><function>DomDocument_create_element</function> seguido + por <function>DomNode_append_child</function></entry> + </row> + <row> + <entry>DomDocument_dtd</entry> + <entry><function>DomDocument_doctype</function></entry> + </row> + <row> + <entry>DomDocument_root</entry> + <entry><function>DomDocument_document_element</function></entry> + </row> + <row> + <entry>DomDocument_children</entry> + <entry><function>DomNode_child_nodes</function></entry> + </row> + <row> + <entry>DomDocument_imported_node</entry> + <entry>No hay reemplazo.</entry> + </row> + <row> + <entry>DomNode_add_child</entry> + <entry>Crear un nuevo nodo, p.ej. con + <function>DomDocument_create_element</function> y agregarlo + con <function>DomNode_append_child</function>. + </entry> + </row> + <row> + <entry>DomNode_children</entry> + <entry><function>DomNode_child_nodes</function></entry> + </row> + <row> + <entry>DomNode_parent</entry> + <entry><function>DomNode_parent_node</function></entry> + </row> + <row> + <entry>DomNode_new_child</entry> + <entry>Crear un nuevo nodo, p.ej. con + <function>DomDocument_create_element</function> y agregarlo + con <function>DomNode_append_child</function>. + </entry> + </row> + <row> + <entry>DomNode_set_content</entry> + <entry>Crear un nuevo nodo, p.ej. con + <function>DomDocument_create_text_node</function> y agregarlo + con <function>DomNode_append_child</function>. + </entry> + </row> + <row> + <entry>DomNode_get_content</entry> + <entry>El contenido es solo un nodo de texto y puede + consultarse con <function>DomNode_child_nodes</function>. + </entry> + </row> + <row> + <entry>DomNode_set_content</entry> + <entry>El contenido es solo un nodo de texto y puede ser + agregado con <function>DomNode_append_child</function>. + </entry> + </row> + </tbody> + </tgroup> + </table> + </para> + </section> + + &reference.domxml.constants; + + <section id="domxml.classes"> + <title>Clases</title> + <para> + La API del módulo sigue el estándar DOM de Nivel 2 + tan fielmente como es posible. Por consiguiente, la API es + completamente orientada a objetos. Es una buena idea tener el + estándar DOM a la mano cuando se usa este + módulo. Aunque la API es orientada a objetos, existen + varias funciones que pueden ser llamadas en una forma no + orientada a objetos, pasando el objeto sobre el que debe operarse + como primer argumento. Estas funciones existen principalmente + para conservar la compatibilidad con versiones anteriores de esta + extensión, y no deberían ser usadas cuando se creen + nuevos scripts. + </para> + <para> + Esta API difiere de la API DOM oficial en dos formas. Primero, + todos los atributos de clase son implementados como funciones con + el mismo nombre. En segundo lugar, los nombres de funciones + siguen la convención de nombres de PHP. esto quiere decir + que una función DOM llamada lastChild() será + escrita como last_child(). + </para> + <para> + Este módulo define un número de clases, que son + listados - incluyendo sus métodos - en las siguientes + tablas. Las clases con un equivalente en el estándar DOM + son llamadas DOMxxx. + </para> + + <para> + <table> + <title>Lista de clases</title> + <tgroup cols="2"> + <thead> + <row> + <entry>Nombre de clase</entry> + <entry>Clases padre</entry> + </row> + </thead> + <tbody> + <row> + <entry>DomAttribute</entry> + <entry>DomNode</entry> + </row> + <row> + <entry>DomCData</entry> + <entry>DomNode</entry> + </row> + <row> + <entry>DomComment</entry> + <entry>DomCData : DomNode</entry> + </row> + <row> + <entry>DomDocument</entry> + <entry>DomNode</entry> + </row> + <row> + <entry>DomDocumentType</entry> + <entry>DomNode</entry> + </row> + <row> + <entry>DomElement</entry> + <entry>DomNode</entry> + </row> + <row> + <entry>DomEntity</entry> + <entry>DomNode</entry> + </row> + <row> + <entry>DomEntityReference</entry> + <entry>DomNode</entry> + </row> + <row> + <entry>DomProcessingInstruction</entry> + <entry>DomNode</entry> + </row> + <row> + <entry>DomText</entry> + <entry>DomCData : DomNode</entry> + </row> + <row> + <entry>Parser</entry> + <entry>Por el momento aun se llama DomParser</entry> + </row> + <row> + <entry>XPathContext</entry> + <entry></entry> + </row> + </tbody> + </tgroup> + </table> + </para> + + <para> + <table> + <title>Clase DomDocument (DomDocument : DomNode)</title> + <tgroup cols="3"> + <thead> + <row> + <entry>Nombre de método</entry> + <entry>Nombre de función</entry> + <entry>Anotación</entry> + </row> + </thead> + <tbody> + <row> + <entry>doctype</entry> + <entry><function>DomDocument_doctype</function></entry> + <entry></entry> + </row> + <row> + <entry>document_element</entry> + <entry><function>DomDocument_document_element</function></entry> + <entry></entry> + </row> + <row> + <entry>create_element</entry> + <entry><function>DomDocument_create_element</function></entry> + <entry></entry> + </row> + <row> + <entry>create_text_node</entry> + <entry><function>DomDocument_create_text_node</function></entry> + <entry></entry> + </row> + <row> + <entry>create_comment</entry> + <entry><function>DomDocument_create_comment</function></entry> + <entry></entry> + </row> + <row> + <entry>create_cdata_section</entry> + <entry><function>DomDocument_create_cdata_section</function></entry> + <entry></entry> + </row> + <row> + <entry>create_processing_instruction</entry> + <entry><function>DomDocument_create_processing_instruction</function></entry> + <entry></entry> + </row> + <row> + <entry>create_attribute</entry> + <entry><function>DomDocument_create_attribute</function></entry> + <entry></entry> + </row> + <row> + <entry>create_entity_reference</entry> + <entry><function>DomDocument_create_entity_reference</function></entry> + <entry></entry> + </row> + <row> + <entry>get_elements_by_tagname</entry> + <entry><function>DomDocument_get_elements_by_tagname</function></entry> + <entry></entry> + </row> + <row> + <entry>get_element_by_id</entry> + <entry><function>DomDocument_get_element_by_id</function></entry> + <entry></entry> + </row> + <row> + <entry>dump_mem</entry> + <entry><function>DomDocument_dump_mem</function></entry> + <entry>no hace parte del estándar DOM</entry> + </row> + <row> + <entry>dump_file</entry> + <entry><function>DomDocument_dump_file</function></entry> + <entry>no hace parte del estándar DOM</entry> + </row> + <row> + <entry>html_dump_mem</entry> + <entry><function>DomDocument_html_dump_mem</function></entry> + <entry>no hace parte del estándar DOM</entry> + </row> + <row> + <entry>xpath_init</entry> + <entry>xpath_init</entry> + <entry>no hace parte del estándar DOM</entry> + </row> + <row> + <entry>xpath_new_context</entry> + <entry>xpath_new_context</entry> + <entry>no hace parte del estándar DOM</entry> + </row> + <row> + <entry>xptr_new_context</entry> + <entry>xptr_new_context</entry> + <entry>no hace parte del estándar DOM</entry> + </row> + </tbody> + </tgroup> + </table> + </para> + + <para> + <table> + <title>Clase DomElement (DomElement : DomNode)</title> + <tgroup cols="3"> + <thead> + <row> + <entry>Nombre de método</entry> + <entry>Nombre de función</entry> + <entry>Anotación</entry> + </row> + </thead> + <tbody> + <row> + <entry>tagname</entry> + <entry><function>DomElement_tagname</function></entry> + <entry></entry> + </row> + <row> + <entry>get_attribute</entry> + <entry><function>DomElement_get_attribute</function></entry> + <entry></entry> + </row> + <row> + <entry>set_attribute</entry> + <entry><function>DomElement_set_attribute</function></entry> + <entry></entry> + </row> + <row> + <entry>remove_attribute</entry> + <entry><function>DomElement_remove_attribute</function></entry> + <entry></entry> + </row> + <row> + <entry>get_attribute_node</entry> + <entry><function>DomElement_get_attribute_node</function></entry> + <entry></entry> + </row> +<!-- This function is not implemented at all for the time being + <row> + <entry>set_attribute_node</entry> + <entry><function>DomElement_set_attribute_node</function></entry> + <entry></entry> + </row> +--> + + <row> + <entry>get_elements_by_tagname</entry> + <entry><function>DomElement_get_elements_by_tagname</function></entry> + <entry></entry> + </row> + <row> + <entry>has_attribute</entry> + <entry><function>DomElement_has_attribute</function></entry> + <entry></entry> + </row> + </tbody> + </tgroup> + </table> + </para> + + <para> + <table> + <title>DomNode class</title> + <tgroup cols="2"> + <thead> + <row> + <entry>Nombre de método</entry> + <entry>Anotación</entry> + </row> + </thead> + <tbody> + <row> + <entry><function>DomNode_node_name</function></entry> + <entry></entry> + </row> + <row> + <entry><function>DomNode_node_value</function></entry> + <entry></entry> + </row> + <row> + <entry><function>DomNode_node_type</function></entry> + <entry></entry> + </row> + <row> + <entry><function>DomNode_last_child</function></entry> + <entry></entry> + </row> + <row> + <entry><function>DomNode_first_child</function></entry> + <entry></entry> + </row> + <row> + <entry><function>DomNode_child_nodes</function></entry> + <entry></entry> + </row> + <row> + <entry><function>DomNode_previous_sibling</function></entry> + <entry></entry> + </row> + <row> + <entry><function>DomNode_next_sibling</function></entry> + <entry></entry> + </row> + <row> + <entry><function>DomNode_parent_node</function></entry> + <entry></entry> + </row> + <row> + <entry><function>DomNode_owner_document</function></entry> + <entry></entry> + </row> + <row> + <entry><function>DomNode_insert_before</function></entry> + <entry></entry> + </row> + <row> + <entry><function>DomNode_append_child</function></entry> + <entry></entry> + </row> + <row> + <entry><function>DomNode_append_sibling</function></entry> + <entry>No se encuentra en el estándar DOM. Esta + función emula el comportamiento antiguo de + <function>DomNode_append_child</function>.</entry> + </row> + <row> + <entry><function>DomNode_remove_child</function></entry> + <entry></entry> + </row> + <row> + <entry><function>DomNode_has_child_nodes</function></entry> + <entry></entry> + </row> + <row> + <entry><function>DomNode_has_attributes</function></entry> + <entry></entry> + </row> + <row> + <entry><function>DomNode_clone_node</function></entry> + <entry></entry> + </row> + <row> + <entry><function>DomNode_attributes</function></entry> + <entry></entry> + </row> + <row> + <entry><function>DomNode_unlink_node</function></entry> + <entry>No se encuentra en el estándar DOM</entry> + </row> + <row> + <entry><function>DomNode_replace_node</function></entry> + <entry>No se encuentra en el estándar DOM</entry> + </row> + <row> + <entry><function>DomNode_set_content</function></entry> + <entry>No se encuentra en el estándar DOM, obsoleta</entry> + </row> + <row> + <entry><function>DomNode_get_content</function></entry> + <entry>No se encuentra en el estándar DOM, obsoleta</entry> + </row> + <row> + <entry><function>DomNode_dump_node</function></entry> + <entry>No se encuentra en el estándar DOM</entry> + </row> + <row> + <entry><function>DomNode_is_blank_node</function></entry> + <entry>No se encuentra en el estándar DOM</entry> + </row> + </tbody> + </tgroup> + </table> + </para> + + <para> + <table> + <title>Clase DomAttribute (DomAttribute : DomNode)</title> + <tgroup cols="3"> + <thead> + <row> + <entry>Nombre de método</entry> + <entry></entry> + <entry>Anotación</entry> + </row> + </thead> + <tbody> + <row> + <entry>name</entry> + <entry><function>DomAttribute_name</function></entry> + <entry></entry> + </row> + <row> + <entry>value</entry> + <entry><function>DomAttribute_value</function></entry> + <entry></entry> + </row> + <row> + <entry>specified</entry> + <entry><function>DomAttribute_specified</function></entry> + <entry></entry> + </row> + </tbody> + </tgroup> + </table> + </para> + + <para> + <table> + <title>Clase DomProcessingInstruction (DomProcessingInstruction : + DomNode)</title> + <tgroup cols="3"> + <thead> + <row> + <entry>Nombre de método</entry> + <entry>Nombre de función</entry> + <entry>Anotación</entry> + </row> + </thead> + <tbody> + <row> + <entry>target</entry> + <entry><function>DomProcessingInstruction_target</function></entry> + <entry></entry> + </row> + <row> + <entry>data</entry> + <entry><function>DomProcessingInstruction_data</function></entry> + <entry></entry> + </row> + </tbody> + </tgroup> + </table> + </para> + + <para> + <table> + <title>Clase Parser</title> + <tgroup cols="3"> + <thead> + <row> + <entry>Nombre de método</entry> + <entry>Nombre de función</entry> + <entry>Anotación</entry> + </row> + </thead> + <tbody> + <row> + <entry>add_chunk</entry> + <entry><function>Parser_add_chunk</function></entry> + <entry></entry> + </row> + <row> + <entry>end</entry> + <entry><function>Parser_end</function></entry> + <entry></entry> + </row> + </tbody> + </tgroup> + </table> + </para> + + <para> + <table> + <title>Clase XPathContext</title> + <tgroup cols="3"> + <thead> + <row> + <entry>Nombre de método</entry> + <entry>Nombre de función</entry> + <entry>Anotación</entry> + </row> + </thead> + <tbody> + <row> + <entry>eval</entry> + <entry><function>XPathContext_eval</function></entry> + <entry></entry> + </row> + <row> + <entry>eval_expression</entry> + <entry><function>XPathContext_eval_expression</function></entry> + <entry></entry> + </row> + <row> + <entry>register_ns</entry> + <entry><function>XPathContext_register_ns</function></entry> + <entry></entry> + </row> + </tbody> + </tgroup> + </table> + </para> + + <para> + <table> + <title>Clase DomDocumentType (DomDocumentType : DomNode)</title> + <tgroup cols="3"> + <thead> + <row> + <entry>Nombre de método</entry> + <entry>Nombre de función</entry> + <entry>Anotación</entry> + </row> + </thead> + <tbody> + <row> + <entry>name</entry> + <entry><function>DomDocumentType_name</function></entry> + <entry></entry> + </row> + <row> + <entry>entities</entry> + <entry><function>DomDocumentType_entities</function></entry> + <entry></entry> + </row> + <row> + <entry>notations</entry> + <entry><function>DomDocumentType_notations</function></entry> + <entry></entry> + </row> + <row> + <entry>public_id</entry> + <entry><function>DomDocumentType_public_id</function></entry> + <entry></entry> + </row> + <row> + <entry>system_id</entry> + <entry><function>DomDocumentType_system_id</function></entry> + <entry></entry> + </row> + <row> + <entry>internal_subset</entry> + <entry><function>DomDocumentType_internal_subset</function></entry> + <entry></entry> + </row> + </tbody> + </tgroup> + </table> + </para> + + <para> + La clase DomDtd es derivada de DomNode. DomComment es derivada de + DomCData. + </para> + </section> + + <section id="domxml.examples"> + &reftitle.examples; + <para> + Varios ejemplos en esta referencia requieren una cadena XML. En + lugar de repetir esta cadena en cada ejemplo, será puesta + en un archivo el cual será incluido en cada ejemplo. Este + archivo de inclusión es mostrado en la siguiente + sección de ejemplo. Alternativamente, es posible crear un + documento XML y leerlo con + <function>DomDocument_open_file</function>. + </para> + <para> + <example> + <title>Archivo de inclusión ejemplo.inc con una cadena + XML</title> + <programlisting role="php"> +<![CDATA[ +<?php +$cadena_xml = "<?xml version='1.0' standalone='yes'?> +<!DOCTYPE chapter SYSTEM '/share/sgml/Norman_Walsh/db3xml10/db3xml10.dtd' +[ <!ENTITY sp \"spanish\"> +]> +<!-- lsfj --> +<chapter language='en'><title language='en'>Title</title> + <para language='ge'> + &sp; + <!-- comment --> + <informaltable ID='findme' language='&sp;'> + <tgroup cols='3'> + <tbody> + <row><entry>a1</entry><entry +morerows='1'>b1</entry><entry>c1</entry></row> +<row><entry>a2</entry><entry>c2</entry></row> + <row><entry>a3</entry><entry>b3</entry><entry>c3</entry></row> + </tbody> + </tgroup> + </informaltable> + </para> +</chapter>"; +?> +]]> + </programlisting> + </example> + </para> + </section> </partintro> &reference.domxml.functions; </reference> - <!-- Keep this comment at the end of the file Local variables: mode: sgml @@ -126,5 +775,7 @@ sgml-local-catalogs:nil sgml-local-ecat-files:nil End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 --> - http://cvs.php.net/diff.php/phpdoc-es/reference/filesystem/ini.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-es/reference/filesystem/ini.xml diff -u phpdoc-es/reference/filesystem/ini.xml:1.3 phpdoc-es/reference/filesystem/ini.xml:1.4 --- phpdoc-es/reference/filesystem/ini.xml:1.3 Sat May 1 15:49:30 2004 +++ phpdoc-es/reference/filesystem/ini.xml Tue Jun 1 23:38:36 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.7 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.8 Maintainer: lboshell Status: ready --> <section id="filesystem.configuration"> &reftitle.runtime; &extension.runtime; @@ -80,7 +80,7 @@ deshabilitar esta característica en tiempo de compilación usando el parámetro de configuración <link - linkend="install.configure.disable-url-fopen-wrapper"><parameter>--disable-url-fopen-wrapper</parameter></link>. + linkend="configure.disable-url-fopen-wrapper"><parameter>--disable-url-fopen-wrapper</parameter></link>. </para> </note> <warning> http://cvs.php.net/diff.php/phpdoc-es/reference/filesystem/functions/pclose.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/filesystem/functions/pclose.xml diff -u phpdoc-es/reference/filesystem/functions/pclose.xml:1.1 phpdoc-es/reference/filesystem/functions/pclose.xml:1.2 --- phpdoc-es/reference/filesystem/functions/pclose.xml:1.1 Sun Apr 14 20:13:59 2002 +++ phpdoc-es/reference/filesystem/functions/pclose.xml Tue Jun 1 23:38:36 2004 @@ -1,31 +1,33 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/filesystem.xml, last change in rev 1.1 --> -<!-- last change to 'pclose' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.4 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 --> <refentry id="function.pclose"> <refnamediv> <refname>pclose</refname> - <refpurpose>Cierra el fichero de proceso apuntado</refpurpose> + <refpurpose>Cierra un apuntador de archivo de proceso</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> - <type>int</type><methodname>pclose</methodname> - <methodparam><type>int</type><parameter>fp</parameter></methodparam> + <type>int</type><methodname>pclose</methodname> + <methodparam><type>resource</type><parameter>gestor</parameter></methodparam> </methodsynopsis> - <para> - Cierra un fichero que representa un tuberia (pipe) - abierta con <function>popen</function>. - </para> - <para> - El apuntador al fichero debe ser válido, y debe haber sido devuelto - por una llamada con éxito a <function>popen</function>. + <para> + Cierra un apuntador de archivo a un pipe abierto por + <function>popen</function>. + </para> + <para> + El apuntador de archivo debe ser válido, y debe haber sido + devuelto por un llamado satisfactorio a + <function>popen</function>. </para> <para> - Devuelve el estado de terminación del proceso que estaba - ejecutándose. + Devuelve el status de terminación del proceso que fue + ejecutado. </para> <para> - Ver también <function>popen</function>. + Vea también <function>popen</function>. </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/filesystem/functions/popen.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/filesystem/functions/popen.xml diff -u phpdoc-es/reference/filesystem/functions/popen.xml:1.1 phpdoc-es/reference/filesystem/functions/popen.xml:1.2 --- phpdoc-es/reference/filesystem/functions/popen.xml:1.1 Sun Apr 14 20:14:00 2002 +++ phpdoc-es/reference/filesystem/functions/popen.xml Tue Jun 1 23:38:36 2004 @@ -1,42 +1,80 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/filesystem.xml, last change in rev 1.1 --> -<!-- last change to 'popen' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.13 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 --> <refentry id="function.popen"> <refnamediv> <refname>popen</refname> - <refpurpose>Abre el fichero de proceso apuntado</refpurpose> + <refpurpose>Abre un apuntador de archivo de proceso</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> - <type>int</type><methodname>popen</methodname> - <methodparam><type>string</type><parameter>command</parameter></methodparam> - <methodparam><type>string</type><parameter>mode</parameter></methodparam> + <type>resource</type><methodname>popen</methodname> + <methodparam><type>string</type><parameter>comando</parameter></methodparam> + <methodparam><type>string</type><parameter>modo</parameter></methodparam> </methodsynopsis> - <para> - Abre una tubería (pipe) a un proceso ejecutado haciendo fork al - comando dado por command + <para> + Abre un pipe con un proceso ejecutado al bifurcar el comando dado + en el primer parámetro. </para> - <para> - Devuelve un apuntador de fichero idéntico al devuelto por - <function>fopen</function>, excepto que este es unidireccional (sólo - puede usarse o para leer o para escribir) y debe cerrarse con - <function>pclose</function>. Este apuntador puede usarse con + <para> + Devuelve un apuntador de archivo idéntico al devuelto por + <function>fopen</function>, con la excepción de que es + unidireccional (puede ser usado sólo para lectura o + escritura) y debe ser cerrado con + <function>pclose</function>. Este apuntador puede ser usado con <function>fgets</function>, <function>fgetss</function>, y - <function>fputs</function>. + <function>fwrite</function>. + </para> + <para> + Si ocurre un error, se devuelve &false;. </para> + <note> + <para> + Si está buscando soporte bidireccional (en dos + vías), use <function>proc_open</function>. + </para> + </note> <para> - Si ocurre un error, devuelve &false;. + <example> + <title>Ejemplo de <function>popen</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +$gestor = popen("/bin/ls", "r"); +?> +]]> + </programlisting> + </example> </para> <para> + Si el comando a ser ejecutado no es encontrado, se devuelve un + recurso válido. Esto puede parecer extraño, pero + tiene sentido; le permite acceder a cualquier mensaje de error + devuelto por el intérprete de comandos: <informalexample> <programlisting role="php"> -$fp = popen ("/bin/ls", "r"); +<![CDATA[ +<?php +error_reporting(E_ALL); + +/* Agregar redireccion de modo que tengamos stderr. */ +$gestor = popen('/ruta/hacia/basura 2>&1', 'r'); +echo "'$gestor'; " . gettype($gestor) . "\n"; +$read = fread($gestor, 2096); +echo $read; +pclose($gestor); +?> +]]> </programlisting> </informalexample> </para> + ¬e.exec-path; + &warn.sm.exec; <para> - Ver también <function>pclose</function>. + Vea también <function>pclose</function>, + <function>fopen</function>, y <function>proc_open</function>. </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/filesystem/functions/readfile.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/filesystem/functions/readfile.xml diff -u phpdoc-es/reference/filesystem/functions/readfile.xml:1.1 phpdoc-es/reference/filesystem/functions/readfile.xml:1.2 --- phpdoc-es/reference/filesystem/functions/readfile.xml:1.1 Sun Apr 14 20:14:00 2002 +++ phpdoc-es/reference/filesystem/functions/readfile.xml Tue Jun 1 23:38:36 2004 @@ -1,59 +1,42 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/filesystem.xml, last change in rev 1.1 --> -<!-- last change to 'readfile' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.6 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 --> <refentry id="function.readfile"> <refnamediv> <refname>readfile</refname> - <refpurpose>Muestra el contenido de un fichero</refpurpose> + <refpurpose>Imprime un archivo</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> - <type>int</type><methodname>readfile</methodname> - <methodparam><type>string</type><parameter>filename</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter> - use_include_path - </parameter></methodparam> + <type>int</type><methodname>readfile</methodname> + <methodparam><type>string</type><parameter>nombre_archivo</parameter></methodparam> + <methodparam choice="opt"><type>bool</type><parameter>usar_ruta_inclusion</parameter></methodparam> + <methodparam choice="opt"><type>resource</type><parameter>contexto</parameter></methodparam> </methodsynopsis> <para> - Lee un fichero y lo escribe a la salida estándar. + Lee un archivo y lo escribe al búfer de salida. </para> <para> - Devuelve el número de bytes leidos del fichero. Si ocurre un - error, se devuelve &false; y a menos que la función fuera llamada - como @readfile, se imprime un mensaje de error + Devuelve el número de bytes leídos desde el + archivo. Si ocurre un error, &false; es devuelto y a menos que la + función sea llamada como @<function>readfile</function>, + se genera un mensaje de error. </para> + &tip.fopen-wrapper; <para> - Si <parameter>filename</parameter> comienzo por "http://" - (no es sensible a mayúsculas), se abre una conexión HTTP 1.0 al - servidor especificado y el texto de la respuesta se escribe - a la salida estándar. + Puede usar el segundo parámetro opcional y definirlo como + &true;, si desea buscar por el archivo en <link + linkend="ini.include-path">include_path</link>, también. </para> <para> - No maneja redirecciones HTTP, por eso se debe incluir una barra - final cuando se trata de directorios. - </para> - <para> - Si <parameter>filename</parameter> comienza con "ftp://" - (no es sensible a mayúsculas), se abre una conexión ftp al servidor - especificado y el fichero que se pide se escribe en la salida estándar. - Si el servidor no soporta ftp en modo pasivo, la función fallará. - </para> - <para> - Si <parameter>filename</parameter> no comienza con ninguna de las - cadenas anteriores, el fichero será abierto del sistema de ficheros - y su contenido escrito en la salida estándar. - </para> - <para> - Se puede usar el segundo parámetro opcional y fijarlo a "1", si - si quieres que también se busque el fichero en el <link - linkend="ini.include-path">include_path</link>. - </para> - <para> - Ver también <function>fpassthru</function>, + Vea también <function>fpassthru</function>, <function>file</function>, <function>fopen</function>, - <function>include</function>, <function>require</function>, y - <function>virtual</function>. + <function>include</function>, <function>require</function>, + <function>virtual</function>, + <function>file_get_contents</function>, y <xref + linkend="wrappers"/>. </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/pdf/reference.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-es/reference/pdf/reference.xml diff -u phpdoc-es/reference/pdf/reference.xml:1.5 phpdoc-es/reference/pdf/reference.xml:1.6 --- phpdoc-es/reference/pdf/reference.xml:1.5 Sun Jan 25 01:44:19 2004 +++ phpdoc-es/reference/pdf/reference.xml Tue Jun 1 23:38:37 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <!-- EN-Revision: 1.15 Maintainer: jtacon Status: ready --> <reference id="ref.pdf"> <title>Funciones PDF</title> @@ -8,20 +8,21 @@ <partintro> <section id="pdf.intro"> &reftitle.intro; - <simpara> Las funciones PDF en PHP pueden crear archivos PDF - utilizando la librería PDFlib creada por - <ulink url="&url.pdflib.merz;">Thomas Merz</ulink>. + <simpara> + Las funciones PDF en PHP pueden crear archivos PDF utilizando la + biblioteca PDFlib creada por <ulink + url="&url.pdflib.merz;">Thomas Merz</ulink>. </simpara> <simpara> - La documentación en esta sección solamente es una - descripción de las funciones de la librería PDFlib - y no debería considerarse una referencia exhaustiva. - Se ha de consultar la documentación incluida en el - código fuente de la distribución de PDFlib para - una completa y detallada explicación de cada - función. Proporciona muy buena descripción - de las capacidades de PDFlib y contiene actualizada la - documentación de todas las funciones. + La documentación en esta sección solamente es una + descripción de las funciones de la biblioteca PDFlib y no + debería considerarse una referencia exhaustiva. Se ha de + consultar la documentación incluida en el código + fuente de la distribución de PDFlib para una completa y + detallada explicación de cada función. Proporciona + muy buena descripción de las capacidades de PDFlib y + contiene actualizada la documentación de todas las + funciones. </simpara> <simpara> Todas las funciones de PDFlib y del módulo PHP tienen @@ -38,15 +39,15 @@ </simpara> <simpara> Hay que tener en cuenta que la mayoría de las - funciones PDF requieren un primer parámetro + funciones PDF requieren un primer parámetro <parameter>pdfdoc</parameter>. En los siguientes - <link linkend="pdf.examples">ejemplos</link> hay más - información. + <link linkend="pdf.examples">ejemplos</link> hay más + información. </simpara> <note> <simpara> - Si se está interesado en alternativas de generadores gratis de PDF que - no utilizen liberías externas PDF, mirar + Si se está interesado en alternativas de generadores gratis de PDF que + no utilizen liberías externas PDF, mirar <link linkend="faq.using.freepdf"> este FAQ relacionado</link>. </simpara> </note> @@ -55,18 +56,18 @@ <section id="pdf.requirements"> &reftitle.required; <para> - PDFlib está disponible para descargar en + PDFlib está disponible para descargar en <ulink url="&url.pdf;">&url.pdf;</ulink>, pero requiere la compra de una licencia para uso comercial. Se requieren - las librerías <ulink url="&url.jpeg;">JPEG</ulink> y <ulink + las bibliotecas <ulink url="&url.jpeg;">JPEG</ulink> y <ulink url="&url.tiff;">TIFF</ulink> para compilar esta extensión. </para> <section id="pdf.oldlibs.hints"> <title>Compatibilidad con versiones antiguas de PDFlib</title> <simpara> - Cualquier versión de PHP después del 9 de Marzo del 2000 no - soporta versiones de PDFlib anteriores a la 3.0. + Cualquier versión de PHP después del 9 de Marzo + del 2000 no soporta versiones de PDFlib anteriores a la 3.0. </simpara> <simpara> PDFlib 3.0 o superior es compatible desde PHP 3.0.19 en adelante. @@ -85,15 +86,15 @@ <section id="pdf.oldlibs.confusion"> <title>Confusiones con antiguas versiones de PDFlib</title> <simpara> - Desde PHP 4.0.5, la extensión PHP para PDFlib es oficialmente + Desde PHP 4.0.5, la extensión PHP para PDFlib es oficialmente soportada por PDFlib GmbH. Esto significa que todas las funciones descritas en el manual de PDFlib (V3.00 o superior) son - soportadas por PHP 4 con el mismo funcionamiento y parámetros. - Sólo los valores devueltos pueden variar en el manual - PDFlib, ya que PHP adoptó la convención de devolver &false;. - Por razones de compatibilidad, PDFlib aún soporta las antiguas - funciones, pero deberían reemplazarlas en sus nuevas versiones. - PDFlib GmbH no dará soporte a cualquier problema causado + soportadas por PHP 4 con el mismo funcionamiento y parámetros. + Sólo los valores devueltos pueden variar en el manual + PDFlib, ya que PHP adoptó la convención de devolver &false;. + Por razones de compatibilidad, PDFlib aún soporta las antiguas + funciones, pero deberían reemplazarlas en sus nuevas versiones. + PDFlib GmbH no dará soporte a cualquier problema causado por el uso de estas funciones obsoletas. </simpara> <para> @@ -102,7 +103,7 @@ <tgroup cols="2"> <thead> <row> - <entry>Antigua función</entry> + <entry>Antigua función</entry> <entry>Reemplazo</entry> </row> </thead> @@ -118,67 +119,67 @@ <row> <entry><function>pdf_get_annotation</function></entry> <entry><function>pdf_get_bookmark</function> - utilizando los mismos parámetros.</entry> + utilizando los mismos parámetros.</entry> </row> <row> <entry><function>pdf_get_font</function></entry> <entry><function>pdf_get_value</function> pasando - <literal>"font"</literal> como segundo parámetro.</entry> + <literal>"font"</literal> como segundo parámetro.</entry> </row> <row> <entry><function>pdf_get_fontsize</function></entry> <entry><function>pdf_get_value</function> pasando - <literal>"fontsize"</literal> como segundo parámetro.</entry> + <literal>"fontsize"</literal> como segundo parámetro.</entry> </row> <row> <entry><function>pdf_get_fontname</function></entry> <entry><function>pdf_get_parameter</function> pasando - <literal>"fontname"</literal> como segundo parámetro.</entry> + <literal>"fontname"</literal> como segundo parámetro.</entry> </row> <row> <entry><function>pdf_set_info_creator</function></entry> <entry><function>pdf_set_info</function> pasando - <literal>"Creator"</literal> como segundo parámetro.</entry> + <literal>"Creator"</literal> como segundo parámetro.</entry> </row> <row> <entry><function>pdf_set_info_title</function></entry> <entry><function>pdf_set_info</function> pasando - <literal>"Title"</literal> como segundo parámetro.</entry> + <literal>"Title"</literal> como segundo parámetro.</entry> </row> <row> <entry><function>pdf_set_info_subject</function></entry> <entry><function>pdf_set_info</function> pasando - <literal>"Subject"</literal> como segundo parámetro.</entry> + <literal>"Subject"</literal> como segundo parámetro.</entry> </row> <row> <entry><function>pdf_set_info_author</function></entry> <entry><function>pdf_set_info</function> pasando - <literal>"Author"</literal> como segundo parámetro.</entry> + <literal>"Author"</literal> como segundo parámetro.</entry> </row> <row> <entry><function>pdf_set_info_keywords</function></entry> <entry><function>pdf_set_info</function> pasando - <literal>"Keywords"</literal> como segundo parámetro.</entry> + <literal>"Keywords"</literal> como segundo parámetro.</entry> </row> <row> <entry><function>pdf_set_leading</function></entry> <entry><function>pdf_set_value</function> pasando - <literal>"leading"</literal> como segundo parámetro.</entry> + <literal>"leading"</literal> como segundo parámetro.</entry> </row> <row> <entry><function>pdf_set_text_rendering</function></entry> <entry><function>pdf_set_value</function> pasando - <literal>"textrendering"</literal> como segundo parámetro.</entry> + <literal>"textrendering"</literal> como segundo parámetro.</entry> </row> <row> <entry><function>pdf_set_text_rise</function></entry> <entry><function>pdf_set_value</function> pasando - <literal>"textrise"</literal> como segundo parámetro.</entry> + <literal>"textrise"</literal> como segundo parámetro.</entry> </row> <row> <entry><function>pdf_set_horiz_scaling</function></entry> <entry><function>pdf_set_value</function> pasando - <literal>"horizscaling"</literal> como segundo parámetro.</entry> + <literal>"horizscaling"</literal> como segundo parámetro.</entry> </row> <row> <entry><function>pdf_set_text_matrix</function></entry> @@ -187,64 +188,64 @@ <row> <entry><function>pdf_set_char_spacing</function></entry> <entry><function>pdf_set_value</function> pasando - <literal>"charspacing"</literal> como segundo parámetro.</entry> + <literal>"charspacing"</literal> como segundo parámetro.</entry> </row> <row> <entry><function>pdf_set_word_spacing</function></entry> <entry><function>pdf_set_value</function> pasando - <literal>"wordspacing"</literal> como segundo parámetro.</entry> + <literal>"wordspacing"</literal> como segundo parámetro.</entry> </row> <row> <entry><function>pdf_set_transition</function></entry> <entry><function>pdf_set_parameter</function> pasando - <literal>"transition"</literal> como segundo parámetro.</entry> + <literal>"transition"</literal> como segundo parámetro.</entry> </row> <row> <entry><function>pdf_open</function></entry> - <entry><function>pdf_new</function> más la subsecuente llamada de + <entry><function>pdf_new</function> más la subsecuente llamada de <function>pdf_open_file</function></entry> </row> <row> <entry><function>pdf_set_font</function></entry> - <entry><function>pdf_findfont</function> más la subsecuente llamada de + <entry><function>pdf_findfont</function> más la subsecuente llamada de <function>pdf_setfont</function></entry> </row> <row> <entry><function>pdf_set_duration</function></entry> <entry><function>pdf_set_value</function> pasando - <literal>"duration"</literal> como segundo parámetro.</entry> + <literal>"duration"</literal> como segundo parámetro.</entry> </row> <row> <entry><function>pdf_open_gif</function></entry> <entry><function>pdf_open_image_file</function> pasando - <literal>"gif"</literal> como segundo parámetro.</entry> + <literal>"gif"</literal> como segundo parámetro.</entry> </row> <row> <entry><function>pdf_open_jpeg</function></entry> <entry><function>pdf_open_image_file</function> pasando - <literal>"jpeg"</literal> como segundo parámetro.</entry> + <literal>"jpeg"</literal> como segundo parámetro.</entry> </row> <row> <entry><function>pdf_open_tiff</function></entry> <entry><function>pdf_open_image_file</function> pasando - <literal>"tiff"</literal> como segundo parámetro.</entry> + <literal>"tiff"</literal> como segundo parámetro.</entry> </row> <row> <entry><function>pdf_open_png</function></entry> <entry><function>pdf_open_image_file</function> pasando - <literal>"png"</literal> como segundo parámetro.</entry> + <literal>"png"</literal> como segundo parámetro.</entry> </row> <row> <entry><function>pdf_get_image_width</function></entry> <entry><function>pdf_get_value</function> pasando - <literal>"imagewidth"</literal> como segundo parámetro y la - imágen como tercer parámetro.</entry> + <literal>"imagewidth"</literal> como segundo parámetro y la + imágen como tercer parámetro.</entry> </row> <row> <entry><function>pdf_get_image_height</function></entry> <entry><function>pdf_get_value</function> pasando - <literal>"imageheight"</literal> como segundo parámetro y la - imágen como tercer parámetro.</entry> + <literal>"imageheight"</literal> como segundo parámetro y la + imágen como tercer parámetro.</entry> </row> </tbody> </tgroup> @@ -255,13 +256,13 @@ <section id="pdf.examples"> &reftitle.examples; <simpara> - La mayoría de las funciones son bastante fáciles de utilizar. - La parte más difícil probablemente es la creación de un primer - documento PDF. El siguiente ejemplo debería ayudar para + La mayoría de las funciones son bastante fáciles de utilizar. + La parte más difícil probablemente es la creación de un primer + documento PDF. El siguiente ejemplo debería ayudar para comenzar. El ejemplo crea el archivo <filename>test.pdf</filename> - en una página. La página contiene el texto "Times Roman outlined" + en una página. La página contiene el texto "Times Roman outlined" en un contorno, con fuente de 30pt. - El texto también está subrayado. + El texto también está subrayado. </simpara> <para> <example> @@ -312,18 +313,18 @@ </example> </para> <para> - La distrubución PDFlib contiene un ejemplo - más complejo para crear un reloj analógico en - una página. Aquí se utiliza el método de - creación en memoria de PDFlib para no tener que crear + La distrubución PDFlib contiene un ejemplo + más complejo para crear un reloj analógico en + una página. Aquí se utiliza el método de + creación en memoria de PDFlib para no tener que crear un archivo temporal. El ejemplo se ha convertido a PHP - desde uno de PDFlib (El mismo ejemplo está - disponible en la documentación <link + desde uno de PDFlib (El mismo ejemplo está + disponible en la documentación <link linkend="ref.cpdf">ClibPDF</link>.) </para> <para> <example> - <title>Ejemplo pdfclock de la distribución PDFlib</title> + <title>Ejemplo pdfclock de la distribución PDFlib</title> <programlisting role="php"> <![CDATA[ <?php @@ -441,11 +442,11 @@ &reftitle.seealso; <note> <para> - Una alternativa de módulo PHP para la creación + Una alternativa de módulo PHP para la creación de documentos PDF basados en - <ulink url="&url.cpdf;">FastIO's</ulink> ClibPDF está - disponible. Mirar la sección <link linkend="ref.cpdf">ClibPDF</link> - para más detalles. Tener en cuenta que <link + <ulink url="&url.cpdf;">FastIO's</ulink> ClibPDF está + disponible. Mirar la sección <link linkend="ref.cpdf">ClibPDF</link> + para más detalles. Tener en cuenta que <link linkend="ref.cpdf">ClibPDF</link> tiene alguna diferencia con PDFlib. </para> </note> http://cvs.php.net/diff.php/phpdoc-es/reference/session/ini.xml?r1=1.8&r2=1.9&ty=u Index: phpdoc-es/reference/session/ini.xml diff -u phpdoc-es/reference/session/ini.xml:1.8 phpdoc-es/reference/session/ini.xml:1.9 --- phpdoc-es/reference/session/ini.xml:1.8 Sun Mar 28 17:37:50 2004 +++ phpdoc-es/reference/session/ini.xml Tue Jun 1 23:38:37 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> -<!-- EN-Revision: 1.22 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.9 $ --> +<!-- EN-Revision: 1.23 Maintainer: lboshell Status: ready --> <section id="session.configuration"> &reftitle.runtime; &extension.runtime; @@ -554,7 +554,7 @@ <simpara> Para PHP 4.1.2 o versiones anteriores, éste valor es habilitado al compilar con <link - linkend="install.configure.enable-trans-sid"> + linkend="configure.enable-trans-sid"> <literal>--enable-trans-sid</literal></link>. A partir de PHP 4.2.0, la característica trans-sid es compilada siempre. </simpara> http://cvs.php.net/diff.php/phpdoc-es/security/cgi-bin.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/security/cgi-bin.xml diff -u phpdoc-es/security/cgi-bin.xml:1.2 phpdoc-es/security/cgi-bin.xml:1.3 --- phpdoc-es/security/cgi-bin.xml:1.2 Sat Jan 31 10:47:21 2004 +++ phpdoc-es/security/cgi-bin.xml Tue Jun 1 23:38:37 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.2 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.3 Maintainer: lboshell Status: ready --> <!-- splitted from ./index.xml, last change in rev 1.66 --> <sect1 id="security.cgi-bin"> <title>Instalación como un binario CGI</title> @@ -76,15 +76,14 @@ acceder a cualquier documento protegido en el servidor web. </simpara> <simpara> - En PHP, la configuración de tiempo de - compilación <link - linkend="install.configure.enable-force-cgi-redirect">--enable-force-cgi-redirect</link> + En PHP, la configuración de tiempo de compilación + <link + linkend="configure.enable-force-cgi-redirect">--enable-force-cgi-redirect</link> y las directivas de configuración en tiempo de - ejecución - <link linkend="ini.doc-root">doc_root</link> y <link - linkend="ini.user-dir">user_dir</link> pueden ser usadas para - prevenir este tipo de ataques, si el árbol de documentos - del servidor llegara a tener directorio alguno con + ejecución <link linkend="ini.doc-root">doc_root</link> y + <link linkend="ini.user-dir">user_dir</link> pueden ser usadas + para prevenir este tipo de ataques, si el árbol de + documentos del servidor llegara a tener directorio alguno con restricciones de acceso. Consulte las siguientes secciones para una explicación detallada de las diferentes combinaciones. @@ -104,9 +103,9 @@ opciones de configuración. Si su servidor web no le permite hacer redireccionamientos, o el servidor no tiene una forma de comunicarle al binario PHP que la petición de - redireccionamiento es segura, puede especificar la - opción <link - linkend="install.configure.enable-force-cgi-redirect">--enable-force-cgi-redirect</link> + redireccionamiento es segura, puede especificar la opción + <link + linkend="configure.enable-force-cgi-redirect">--enable-force-cgi-redirect</link> en el script de configuración. Aun así debe asegurarse de que sus scripts PHP no dependan de alguna forma especial de hacer llamados al script, ya sea directamente @@ -259,12 +258,12 @@ lanzamiento del intérprete. </para> <para> - Para lograr que PHP gestione correctamente la información de - <envar>PATH_INFO</envar> y <envar>PATH_TRANSLATED</envar> con + Para lograr que PHP gestione correctamente la información + de <envar>PATH_INFO</envar> y <envar>PATH_TRANSLATED</envar> con este tipo de configuración, el intérprete PHP debe - haber sido compilado con la opción de - configuración <link - linkend="install.configure.enable-discard-path">--enable-discard-path</link>. + haber sido compilado con la opción de configuración + <link + linkend="configure.enable-discard-path">--enable-discard-path</link>. </para> </sect2> http://cvs.php.net/co.php/phpdoc-es/reference/domxml/configure.xml?r=1.1&p=1 Index: phpdoc-es/reference/domxml/configure.xml +++ phpdoc-es/reference/domxml/configure.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.6 Maintainer: lboshell Status: ready --> <section id="domxml.installation"> &reftitle.install; <para> Esta extensión se encuentra disponible únicamente si PHP fue configurado con <option role="configure">--with-dom[=DIR]</option>. Agregue <option role="configure">--with-dom-xslt[=DIR]</option> para incluir soporte para DOM XSLT. DIR es el directorio de instalación de libxslt. Agregue <option role="configure">--with-dom-exslt[=DIR]</option> para incluir soporte para DOM EXSLT, en donde DIR es el directorio de instalación de libexslt. </para> <note> <title>Nota para Usuarios de Win32</title> <simpara> Para habilitar este módulo en un entorno Windows, debe copiar un archivo adicional desde el directorio de archivos DLL del paquete binario de PHP/Win32 a la carpeta SYSTEM32 en su máquina Windows (Ej: <filename class="directory">C:\WINNT\SYSTEM32</filename> o <filename class="directory">C:\WINDOWS\SYSTEM32</filename>). Para PHP <= 4.2.0, copie <filename>libxml2.dll</filename>, para PHP >= 4.3.0 copie <filename>iconv.dll</filename> desde el directorio de archivos DLL a su directorio SYSTEM32. </simpara> </note> </section> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/phpdoc-es/reference/domxml/constants.xml?r=1.1&p=1 Index: phpdoc-es/reference/domxml/constants.xml +++ phpdoc-es/reference/domxml/constants.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.4 Maintainer: lboshell Status: ready --> <section id="domxml.constants"> &reftitle.constants; &extension.constants; <table> <title>Constantes XML</title> <tgroup cols="3"> <thead> <row> <entry>Constante</entry> <entry>Valor</entry> <entry>Descripción</entry> </row> </thead> <tbody> <row> <entry> <constant>XML_ELEMENT_NODE</constant> (<type>integer</type>) </entry> <entry>1</entry> <entry>El nodo es un elemento</entry> </row> <row> <entry> <constant>XML_ATTRIBUTE_NODE</constant> (<type>integer</type>) </entry> <entry>2</entry> <entry>El nodo es un atributo</entry> </row> <row> <entry> <constant>XML_TEXT_NODE</constant> (<type>integer</type>) </entry> <entry>3</entry> <entry>El nodo es un segmento de texto</entry> </row> <row> <entry> <constant>XML_CDATA_SECTION_NODE</constant> (<type>integer</type>) </entry> <entry>4</entry> <entry></entry> </row> <row> <entry> <constant>XML_ENTITY_REF_NODE</constant> (<type>integer</type>) </entry> <entry>5</entry> <entry></entry> </row> <row> <entry> <constant>XML_ENTITY_NODE</constant> (<type>integer</type>) </entry> <entry>6</entry> <entry>El nodo es una entidad como &nbsp;</entry> </row> <row> <entry> <constant>XML_PI_NODE</constant> (<type>integer</type>) </entry> <entry>7</entry> <entry>El nodo es una instrucción de procesamiento</entry> </row> <row> <entry> <constant>XML_COMMENT_NODE</constant> (<type>integer</type>) </entry> <entry>8</entry> <entry>El nodo es un comentario</entry> </row> <row> <entry> <constant>XML_DOCUMENT_NODE</constant> (<type>integer</type>) </entry> <entry>9</entry> <entry>El nodo es un documento</entry> </row> <row> <entry> <constant>XML_DOCUMENT_TYPE_NODE</constant> (<type>integer</type>) </entry> <entry>10</entry> <entry></entry> </row> <row> <entry> <constant>XML_DOCUMENT_FRAG_NODE</constant> (<type>integer</type>) </entry> <entry>11</entry> <entry></entry> </row> <row> <entry> <constant>XML_NOTATION_NODE</constant> (<type>integer</type>) </entry> <entry>12</entry> <entry></entry> </row> <row> <entry> <constant>XML_GLOBAL_NAMESPACE</constant> (<type>integer</type>) </entry> <entry>1</entry> <entry></entry> </row> <row> <entry> <constant>XML_LOCAL_NAMESPACE</constant> (<type>integer</type>) </entry> <entry>2</entry> <entry></entry> </row> <!-- Following constants copied from appendices/reserved.constants.domxml.xml. no someone familiar with this extension should do further work. --> <row> <entry> <constant>XML_HTML_DOCUMENT_NODE</constant> (<type>integer</type>) </entry> <entry></entry> <entry></entry> </row> <row> <entry> <constant>XML_DTD_NODE</constant> (<type>integer</type>) </entry> <entry></entry> <entry></entry> </row> <row> <entry> <constant>XML_ELEMENT_DECL_NODE</constant> (<type>integer</type>) </entry> <entry></entry> <entry></entry> </row> <row> <entry> <constant>XML_ATTRIBUTE_DECL_NODE</constant> (<type>integer</type>) </entry> <entry></entry> <entry></entry> </row> <row> <entry> <constant>XML_ENTITY_DECL_NODE</constant> (<type>integer</type>) </entry> <entry></entry> <entry></entry> </row> <row> <entry> <constant>XML_NAMESPACE_DECL_NODE</constant> (<type>integer</type>) </entry> <entry></entry> <entry></entry> </row> <row> <entry> <constant>XML_ATTRIBUTE_CDATA</constant> (<type>integer</type>) </entry> <entry></entry> <entry></entry> </row> <row> <entry> <constant>XML_ATTRIBUTE_ID</constant> (<type>integer</type>) </entry> <entry></entry> <entry></entry> </row> <row> <entry> <constant>XML_ATTRIBUTE_IDREF</constant> (<type>integer</type>) </entry> <entry></entry> <entry></entry> </row> <row> <entry> <constant>XML_ATTRIBUTE_IDREFS</constant> (<type>integer</type>) </entry> <entry></entry> <entry></entry> </row> <row> <entry> <constant>XML_ATTRIBUTE_ENTITY</constant> (<type>integer</type>) </entry> <entry></entry> <entry></entry> </row> <row> <entry> <constant>XML_ATTRIBUTE_NMTOKEN</constant> (<type>integer</type>) </entry> <entry></entry> <entry></entry> </row> <row> <entry> <constant>XML_ATTRIBUTE_NMTOKENS</constant> (<type>integer</type>) </entry> <entry></entry> <entry></entry> </row> <row> <entry> <constant>XML_ATTRIBUTE_ENUMERATION</constant> (<type>integer</type>) </entry> <entry></entry> <entry></entry> </row> <row> <entry> <constant>XML_ATTRIBUTE_NOTATION</constant> (<type>integer</type>) </entry> <entry></entry> <entry></entry> </row> <row> <entry> <constant>XPATH_UNDEFINED</constant> (<type>integer</type>) </entry> <entry></entry> <entry></entry> </row> <row> <entry> <constant>XPATH_NODESET</constant> (<type>integer</type>) </entry> <entry></entry> <entry></entry> </row> <row> <entry> <constant>XPATH_BOOLEAN</constant> (<type>integer</type>) </entry> <entry></entry> <entry></entry> </row> <row> <entry> <constant>XPATH_NUMBER</constant> (<type>integer</type>) </entry> <entry></entry> <entry></entry> </row> <row> <entry> <constant>XPATH_STRING</constant> (<type>integer</type>) </entry> <entry></entry> <entry></entry> </row> <row> <entry> <constant>XPATH_POINT</constant> (<type>integer</type>) </entry> <entry></entry> <entry></entry> </row> <row> <entry> <constant>XPATH_RANGE</constant> (<type>integer</type>) </entry> <entry></entry> <entry></entry> </row> <row> <entry> <constant>XPATH_LOCATIONSET</constant> (<type>integer</type>) </entry> <entry></entry> <entry></entry> </row> <row> <entry> <constant>XPATH_USERS</constant> (<type>integer</type>) </entry> <entry></entry> <entry></entry> </row> <row> <entry> <constant>XPATH_NUMBER</constant> (<type>integer</type>) </entry> <entry></entry> <entry></entry> </row> </tbody> </tgroup> </table> </section> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->