cvs: phpdoc-es /reference/domxml/functions DomDocument-create-element.xml DomDocument-create-entity-reference.xml
DomDocument-create-processing-instruction.xml DomDocument-create-text-node.xml DomDocument-doctype.xml DomDocument-document-element.xml
DomDocument-dump-file.xml DomDocument-dump-mem.xml DomDocument-get-element-by-id.xml DomDocument-get-elements-by-tagname.xml
DomDocument-html-dump-mem.xml DomDocument-xinclude.xml DomDocumentType-entities.xml /reference/filesystem/functions is-dir.xml is-executable.xml
is-file.xml is-link.xml /reference/ftp/functions ftp-chmod.xml /reference/image/functions imagettftext.xml /reference/imap reference.xml
/reference/ldap/functions ldap-err2str.xml /reference/math/functions hypot.xml /reference/ncurses constants.xml /reference/oci8 reference.xml
/reference/sybase/functions sybase-affected-rows.xml
| From: | Leonardo Boshell | Date: | Fri, 11 Jun 2004 08:56:04 +0000 |
| Subject: | cvs: phpdoc-es /reference/domxml/functions DomDocument-create-element.xml DomDocument-create-entity-reference.xml DomDocument-create-processing-instruction.xml DomDocument-create-text-node.xml DomDocument-doctype.xml DomDocument-document-element.xml DomDocument-dump-file.xml DomDocument-dump-mem.xml DomDocument-get-element-by-id.xml DomDocument-get-elements-by-tagname.xml DomDocument-html-dump-mem.xml DomDocument-xinclude.xml DomDocumentType-entities.xml /reference/filesystem/functions is-dir.xml is-executable.xml is-file.xml is-link.xml /reference/ftp/functions ftp-chmod.xml /reference/image/functions imagettftext.xml /reference/imap reference.xml /reference/ldap/functions ldap-err2str.xml /reference/math/functions hypot.xml /reference/ncurses constants.xml /reference/oci8 reference.xml /reference/sybase/functions sybase-affected-rows.xml |
||
| Groups: | php.doc.es | ||
| Request: | Send a blank email to doc-es+get-611@lists.php.net to get a copy of this message | ||
lboshell Fri Jun 11 04:56:04 2004 EDT
Added files:
/phpdoc-es/reference/domxml/functions
DomDocument-create-element.xml
DomDocument-create-entity-reference.xml
DomDocument-create-processing-instruction.xml
DomDocument-create-text-node.xml
DomDocument-doctype.xml
DomDocument-document-element.xml
DomDocument-dump-file.xml
DomDocument-dump-mem.xml
DomDocument-get-element-by-id.xml
DomDocument-get-elements-by-tagname.xml
DomDocument-html-dump-mem.xml
DomDocument-xinclude.xml
DomDocumentType-entities.xml
Modified files:
/phpdoc-es/reference/filesystem/functions is-dir.xml
is-executable.xml
is-file.xml is-link.xml
/phpdoc-es/reference/ftp/functions ftp-chmod.xml
/phpdoc-es/reference/image/functions imagettftext.xml
/phpdoc-es/reference/imap reference.xml
/phpdoc-es/reference/ldap/functions ldap-err2str.xml
/phpdoc-es/reference/math/functions hypot.xml
/phpdoc-es/reference/ncurses constants.xml
/phpdoc-es/reference/oci8 reference.xml
/phpdoc-es/reference/sybase/functions sybase-affected-rows.xml
Log:
- Actualizaciones
- Nuevos archivos de domxml
- Correcciones
s/libreria/biblioteca/
s/fichero/archivo/
http://cvs.php.net/diff.php/phpdoc-es/reference/filesystem/functions/is-dir.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/filesystem/functions/is-dir.xml diff -u phpdoc-es/reference/filesystem/functions/is-dir.xml:1.1 phpdoc-es/reference/filesystem/functions/is-dir.xml:1.2 --- phpdoc-es/reference/filesystem/functions/is-dir.xml:1.1 Sun Apr 14 20:13:59 2002 +++ phpdoc-es/reference/filesystem/functions/is-dir.xml Fri Jun 11 04:56:03 2004 @@ -1,27 +1,57 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/filesystem.xml, last change in rev 1.1 --> -<!-- last change to 'is-dir' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.9 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 --> <refentry id="function.is-dir"> <refnamediv> <refname>is_dir</refname> - <refpurpose>Dice si el fichero nombrado es un directorio</refpurpose> + <refpurpose>Indica si el nombre de archivo es un + directorio</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> - <type>bool</type><methodname>is_dir</methodname> - <methodparam><type>string</type><parameter>filename</parameter></methodparam> + <type>bool</type><methodname>is_dir</methodname> + <methodparam><type>string</type><parameter>nombre_archivo</parameter></methodparam> </methodsynopsis> <para> - Devuelve &true; si el nombre del fichero existe y es un directorio. + Devuelve &true; si el archivo con el nombre dado existe y es un + directorio. Si <parameter>nombre_archivo</parameter> es un nombre + de archivo relativo, éste será analizado relativo + al directorio de trabajo actual. </para> + ¬e.clearstatcache; <para> - Los resultados de esta función son cacheados. Ver - <function>clearstatcache</function> para más detalles. - </para> + <example> + <title>Ejemplo de <function>is_dir</function></title> + <programlisting role="php"> +<![CDATA[ +<? +var_dump(is_dir('un_archivo.txt')) . "\n"; +var_dump(is_dir('directorio_falso/abc')) . "\n"; + +var_dump(is_dir('..')); //un directorio arriba +?> +]]> + </programlisting> + <para> + El ejemplo anterior produciría la salida: + </para> + <screen> +<![CDATA[ +bool(false) +bool(false) +bool(true) +]]> + </screen> + </example> + </para> + &tip.fopen-wrapper.stat; + <para> - Ver también <function>is_file</function> y - <function>is_link</function>. + Vea también <function>chdir</function>, <link + linkend="class.dir">dir</link>, <function>opendir</function>, + <function>is_file</function> y <function>is_link</function>. </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/filesystem/functions/is-executable.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/filesystem/functions/is-executable.xml diff -u phpdoc-es/reference/filesystem/functions/is-executable.xml:1.1 phpdoc-es/reference/filesystem/functions/is-executable.xml:1.2 --- phpdoc-es/reference/filesystem/functions/is-executable.xml:1.1 Sun Apr 14 20:13:59 2002 +++ phpdoc-es/reference/filesystem/functions/is-executable.xml Fri Jun 11 04:56:03 2004 @@ -1,26 +1,54 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/filesystem.xml, last change in rev 1.1 --> -<!-- last change to 'is-executable' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.11 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 --> <refentry id="function.is-executable"> <refnamediv> <refname>is_executable</refname> - <refpurpose>Dice si el fichero nombrado es ejecutable</refpurpose> + <refpurpose>Indica si el archivo es ejecutable</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> - <type>bool</type><methodname>is_executable</methodname> - <methodparam><type>string</type><parameter>filename</parameter></methodparam> + <type>bool</type><methodname>is_executable</methodname> + <methodparam><type>string</type><parameter>nombre_archivo</parameter></methodparam> </methodsynopsis> <para> - Devuelve &true; si el fichero indicado existe y es ejecutable. + Devuelve &true; si el archivo con el nombre dado existe y es + ejecutable. </para> <para> - Los resultados de esta función son cacheados. Ver - <function>clearstatcache</function> para más detalles. + <function>is_executable</function> apareció en + <productname>Windows</productname> en la versión 5.0.0 de + PHP. </para> <para> - Ver también <function>is_file</function> y + <example> + <title>Ejemplo de <function>is_executable</function></title> + <programlisting role="php"> +<![CDATA[ +<?php + +$archivo = '/home/vincent/algun_archivo.sh'; + +if (is_executable($archivo)) { + echo $archivo.' es ejecutable'; +} else { + echo $archivo.' no es ejecutable'; +} + +?> +]]> + </programlisting> + </example> + </para> + + ¬e.clearstatcache; + + &tip.fopen-wrapper.stat; + + <para> + Vea también <function>is_file</function> y <function>is_link</function>. </para> </refsect1> http://cvs.php.net/diff.php/phpdoc-es/reference/filesystem/functions/is-file.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/filesystem/functions/is-file.xml diff -u phpdoc-es/reference/filesystem/functions/is-file.xml:1.1 phpdoc-es/reference/filesystem/functions/is-file.xml:1.2 --- phpdoc-es/reference/filesystem/functions/is-file.xml:1.1 Sun Apr 14 20:13:59 2002 +++ phpdoc-es/reference/filesystem/functions/is-file.xml Fri Jun 11 04:56:03 2004 @@ -1,28 +1,29 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/filesystem.xml, last change in rev 1.1 --> -<!-- last change to 'is-file' 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.is-file"> <refnamediv> <refname>is_file</refname> - <refpurpose> - Dice si el fichero nombrado es un fichero regular - </refpurpose> + <refpurpose>Indica si el archivo es un archivo regular</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> - <type>bool</type><methodname>is_file</methodname> - <methodparam><type>string</type><parameter>filename</parameter></methodparam> + <type>bool</type><methodname>is_file</methodname> + <methodparam><type>string</type><parameter>nombre_archivo</parameter></methodparam> </methodsynopsis> <para> - Devuelve &true; si el fichero nombrado existe y es un fichero regular. + Devuelve &true; si el archivo con el nombre dado existe y es un + archivo regular. </para> + + ¬e.clearstatcache; + + &tip.fopen-wrapper.stat; + <para> - Los resultados de esta función son cacheados. Ver - <function>clearstatcache</function> para más detalles. - </para> - <para> - Ver también <function>is_dir</function> y + Vea también <function>is_dir</function> y <function>is_link</function>. </para> </refsect1> http://cvs.php.net/diff.php/phpdoc-es/reference/filesystem/functions/is-link.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/filesystem/functions/is-link.xml diff -u phpdoc-es/reference/filesystem/functions/is-link.xml:1.1 phpdoc-es/reference/filesystem/functions/is-link.xml:1.2 --- phpdoc-es/reference/filesystem/functions/is-link.xml:1.1 Sun Apr 14 20:13:59 2002 +++ phpdoc-es/reference/filesystem/functions/is-link.xml Fri Jun 11 04:56:03 2004 @@ -1,29 +1,31 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/filesystem.xml, last change in rev 1.1 --> -<!-- last change to 'is-link' 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.is-link"> <refnamediv> <refname>is_link</refname> - <refpurpose> - Dice si el fichero indicado es un enlace simbólico - </refpurpose> + <refpurpose>Indica si el archivo es un enlace + simbólico</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> - <type>bool</type><methodname>is_link</methodname> - <methodparam><type>string</type><parameter>filename</parameter></methodparam> + <type>bool</type><methodname>is_link</methodname> + <methodparam><type>string</type><parameter>nombre_archivo</parameter></methodparam> </methodsynopsis> <para> - Devuelve &true; si el fichero indicado existe y es un enlace simbólico. + Devuelve &true; si el archivo con el nombre dado existe y es un + enlace simbólico. </para> + + ¬e.clearstatcache; + + &tip.fopen-wrapper.stat; + <para> - Los resultados de esta función son cacheados. Ver - <function>clearstatcache</function> para más detalles. - </para> - <para> - Ver también <function>is_dir</function> y - <function>is_file</function>. + Vea también <function>is_dir</function>, + <function>is_file</function>, y <function>readlink</function>. </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/ftp/functions/ftp-chmod.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/ftp/functions/ftp-chmod.xml diff -u phpdoc-es/reference/ftp/functions/ftp-chmod.xml:1.2 phpdoc-es/reference/ftp/functions/ftp-chmod.xml:1.3 --- phpdoc-es/reference/ftp/functions/ftp-chmod.xml:1.2 Fri Dec 19 16:18:27 2003 +++ phpdoc-es/reference/ftp/functions/ftp-chmod.xml Fri Jun 11 04:56:03 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.3 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.4 Maintainer: lboshell Status: ready --> <refentry id="function.ftp-chmod"> <refnamediv> <refname>ftp_chmod</refname> @@ -15,9 +15,10 @@ <methodparam><type>string</type><parameter>nombre_archivo</parameter></methodparam> </methodsynopsis> <para> -Establece los permisos sobre el archivo remoto especificado por -<parameter>nombre_archivo</parameter> a <parameter>modo</parameter>, -dado como un valor <emphasis>octal</emphasis>. + Establece los permisos sobre el archivo remoto especificado por + <parameter>nombre_archivo</parameter> a + <parameter>modo</parameter>, dado como un valor + <emphasis>octal</emphasis>. </para> <para> <example> @@ -48,8 +49,8 @@ </example> </para> <para> -Devuelve los nuevos permisos del archivo en caso de éxito, o -&false; si ocurre un fallo. + Devuelve los nuevos permisos del archivo en caso de éxito, + o &false; si ocurre un fallo. </para> <para> Vea también <function>chmod</function>. http://cvs.php.net/diff.php/phpdoc-es/reference/image/functions/imagettftext.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/image/functions/imagettftext.xml diff -u phpdoc-es/reference/image/functions/imagettftext.xml:1.1 phpdoc-es/reference/image/functions/imagettftext.xml:1.2 --- phpdoc-es/reference/image/functions/imagettftext.xml:1.1 Sun Apr 14 20:14:53 2002 +++ phpdoc-es/reference/image/functions/imagettftext.xml Fri Jun 11 04:56:03 2004 @@ -1,83 +1,114 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/image.xml, last change in rev 1.1 --> -<!-- last change to 'imagettftext' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.10 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/image.xml, last change in rev 1.2 --> <refentry id="function.imagettftext"> <refnamediv> - <refname>ImageTTFText</refname> - <refpurpose>Escribe texto en la imagen usando fuentes TrueType</refpurpose> + <refname>imagettftext</refname> + <refpurpose>Escribir un texto sobre la imagen usando fuentes + TrueType</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> - <methodsynopsis> - <type>array</type><methodname>ImageTTFText</methodname> - <methodparam><type>int</type><parameter>im</parameter></methodparam> - <methodparam><type>int</type><parameter>size</parameter></methodparam> - <methodparam><type>int</type><parameter>angle</parameter></methodparam> + <methodsynopsis> + <type>array</type><methodname>imagettftext</methodname> + <methodparam><type>resource</type><parameter>imagen</parameter></methodparam> + <methodparam><type>int</type><parameter>tamanyo</parameter></methodparam> + <methodparam><type>int</type><parameter>angulo</parameter></methodparam> <methodparam><type>int</type><parameter>x</parameter></methodparam> <methodparam><type>int</type><parameter>y</parameter></methodparam> - <methodparam><type>int</type><parameter>col</parameter></methodparam> - <methodparam><type>string</type><parameter>fontfile</parameter></methodparam> - <methodparam><type>string</type><parameter>text</parameter></methodparam> - </methodsynopsis> - <para> - ImageTTFText escribe la cadena<parameter>text</parameter> en la - imagen identificada por <parameter>im</parameter>, comenzando en - las coordenadas <parameter>x,y</parameter> (arriba izquierda es 0,0), - con un ángulo de <parameter>angle</parameter> en el color - <parameter>col</parameter>, usando el ficheor de fuente TrueType - identificado por <parameter>fontfile</parameter>.</para> - <para> - Las coordenadas dadas por - <parameter>x</parameter>,<parameter>y</parameter> definirán el punto - base del primer carácter. (la esquina inferior izquierda del carácter). - Esto es diferente de la función <function>ImageString</function>, - donde x,y definen la esquina superior derecha del primer carácter.</para> - <para> - El <parameter>angle</parameter> viene dado en grados, donde 0 grados - representa el texto de izquierda a derecha (dirección las 3 en punto), - y valores superiores representan una rotación en el sentido de las - agujas de un reloj. (ej. un valor de 90 representaría un texto que fuese - de abajo hacia arriba).</para> - <para> - <parameter>fontfile</parameter> es la ruta hacia la fuente TrueType - que desee usar.</para> - <para> - <parameter>text</parameter> es la cadena de texto que puede incluir - secuencias de caracteres UTF-8 (de la forma: &123; ) para acceder - a caracteres de la fuente más allá de los primeros 255.</para> - <para> - <parameter>col</parameter> es el índice de color. El uso de - un índice de color negativo tiene el efecto de desactivar - el antialiasing.</para> - <para> - <function>ImageTTFText</function> devuelve una matriz con 8 - elementos representando cuatro puntos que hace una caja que cubre - el texto.El orden de los puntos en arriba izquierda, arriba derecha, - abajo derecha, abajo izquierda. Los puntos son relativos al texto - a pesar del ángulo, por lo que "arriba izquierda" significa en - la esquina superior izquierda cuando ve el texto horizontalmente.</para> - <para> - Este script de ejemplo producirá un GIF negro de 400x30 pixels, con - las palabras "Testing..." en blanco con la fuente Arial. + <methodparam><type>int</type><parameter>color</parameter></methodparam> + <methodparam><type>string</type><parameter>archivo_fuente</parameter></methodparam> + <methodparam><type>string</type><parameter>texto</parameter></methodparam> + </methodsynopsis> + <para> + <function>imagettftext</function> dibuja la cadena + <parameter>texto</parameter> en la imagen identificada por + <parameter>imagen</parameter>, comenzando en las coordenadas + <parameter>x</parameter>, <parameter>y</parameter> (la esquina + superior izquierda es 0, 0), a un ángulo de + <parameter>angulo</parameter> en el color + <parameter>color</parameter>, usando el archivo de fuente + TrueType identificado por + <parameter>archivo_fuente</parameter>. Dependiendo en la + versión de la biblioteca GD que PHP usa, cuando + <parameter>archivo_fuente</parameter> no comienza con un caracter + '/', '.ttf' se agregará al nombre de archivo y la + biblioteca intentará buscar por ese archivo en una ruta de + fuentes definida por la biblioteca. + </para> + <para> + Las coordenadas dadas por <parameter>x</parameter>, + <parameter>y</parameter> definirán el punto base del + primer caracter (a grandes rasgos la esquina inferior izquierda + del caracter). Esto a diferencia de + <function>imagestring</function>, en donde x, y definen la + esquina superior derecha del primer caracter. + </para> + <para> + <parameter>angulo</parameter> se encuentra en grados, en donde el + grado 0 produce la lectura del texto de izquierda a derecha (en + dirección de las 3 en punto), y los valores más + altos representan una rotación en sentido contrario al de + las manecillas del reloj. (Es decir, un valor de 90 + resultarío en un texto que se lee de abajo a arriba). + </para> + <para> + <parameter>archivo_fuente</parameter> es la ruta a la fuente + TrueType que desea usar. + </para> + <para> + <parameter>texto</parameter> es la cadena de texto, que puede + incluir secuencias de caracteres UTF-8 (de la forma: &#123;) + para acceder a caracteres más alla de los primeros 255 en + una fuente. + </para> + <para> + <parameter>color</parameter> es el índice de color. El uso + del valor negativo de un índice de color tiene el efecto + de deshabilitar el anti-alias. + </para> + <para> + <function>imagettftext</function> devuelve una matriz con 8 + elementos que representan cuatro puntos que forman la caja + circundante del texto. El orden de los puntos es inferior + izquierdo, inferior derecho, superior derecho y superior + izquierdo. Los puntos son relativos al texto independientemente + del ángulo, así que "superior izquierdo" quiere + decir la esquina del lado superior izquierdo cuando ve el texto + horizontalmente. + </para> + <para> + Este script de ejemplo producirá un JPEG negro de 400x30 + pixeles, con las palabras "Probando..." en blanco en la fuente + Arial. <example> - <title>ImageTTFText</title> - <programlisting> -<?php -Header("Content-type: image/gif"); -$im = imagecreate(400,30); -$black = ImageColorAllocate($im, 0,0,0); -$white = ImageColorAllocate($im, 255,255,255); -ImageTTFText($im, 20, 0, 10, 20, $white, "/path/arial.ttf", "Testing... Omega: &#937;"); -ImageGif($im); -ImageDestroy($im); -?> -</programlisting></example></para> - - <para> - Esta función requiere la libreria GD y la libreria - <ulink url="&url.freetype;">FreeType</ulink>.</para> + <title>Ejemplo de <function>imagettftext</function></title> + <programlisting role="php"> +<![CDATA[ +<?php + header("Content-type: image/jpeg"); + $im = imagecreate(400, 30); + $blanco = imagecolorallocate($im, 255, 255, 255); + $negro = imagecolorallocate($im, 0, 0, 0); + + // Reemplaze la ruto con su propio ruta a la fuente + imagettftext($im, 20, 0, 10, 20, $negro, "/ruta/a/arial.ttf", + "Probando... Omega: &#937;"); + imagejpeg($im); + imagedestroy($im); +?> +]]> + </programlisting> + </example> + </para> + <para> + Esta función requiere tanto la biblioteca GD como la + biblioteca <ulink url="&url.freetype;">FreeType</ulink>. + </para> <para> - Vea también <function>ImageTTFBBox</function>.</para> + Vea también <function>imagettfbbox</function>. + </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/imap/reference.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/imap/reference.xml diff -u phpdoc-es/reference/imap/reference.xml:1.2 phpdoc-es/reference/imap/reference.xml:1.3 --- phpdoc-es/reference/imap/reference.xml:1.2 Mon Apr 15 20:31:42 2002 +++ phpdoc-es/reference/imap/reference.xml Fri Jun 11 04:56:04 2004 @@ -1,28 +1,137 @@ <?xml version="1.0" encoding="iso-8859-1"?> - <reference id="ref.imap"> - <title>Funciones IMAP</title> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.14 Maintainer: lboshell Status: ready --> + <reference id='ref.imap'> + <title>Funciones IMAP, POP3 y NNTP</title> <titleabbrev>IMAP</titleabbrev> <partintro> - <simpara> - Para hacer funcionar estas funciones, debe compilar PHP con - <option role="configure">--with-imap</option>. Esto requiere que - la libreria c-client esté instalada. Obtenga la última versión de - <ulink url="&url.imap;">&url.imap;</ulink> y compílela. Luego - copie <filename>c-client/c-client.a</filename> al directorio - <filename>/usr/local/lib</filename> o a cualquier otro directorio - de su LINK path y copie <filename>c-client/rfc822.h</filename>, - <filename>mail.h</filename> y <filename>linkage.h</filename> al directorio - <filename>/usr/local/include</filename> o a cualquier otro de su INCLUDE - path. - </simpara> - <simpara> - Decir que estas funciones no están limitadas al protocolo - <acronym>IMAP</acronym>, a pesar de sus nombres. La librería subyacente - c-client también soporta <acronym>NNTP</acronym>, <acronym>POP3</acronym> - y métodos de acceso local a buzones de correo. Vea <function>imap_open</function> - para una mayor información. - </simpara> + <section id="imap.intro"> + &reftitle.intro; + <para> + Estas funciones no se encuentran limitadas al protocolo + <acronym>IMAP</acronym>, a pesar de su nombre. La biblioteca + c-client interna también soporta métodos de acceso + a <acronym>NNTP</acronym>, <acronym>POP3</acronym> y buzones de + correo locales. + </para> + </section> + + <section id="imap.requirements"> + &reftitle.required; + <para> + Esta extensión requiere que la biblioteca c-client se + encuentre instalada. Obtenga la versión más + reciente de <ulink url="&url.imap;">&url.imap;</ulink> y + compílela. + </para> + <para> + Es importante que no copie los archivos fuente IMAP directamente + al directorio de inclusiones del sistema ya que puede crear + conflictos. En su lugar, cree un nuevo directorio al interior del + directorio de inclusiones del sistema, tal como + <filename>/usr/local/imap-2000b/</filename> (la ubicación + y nombre dependen de su configuración y versión de + IMAP), y al interior de este directorio nuevo cree los + directorios adicionales con nombres <filename>lib/</filename> e + <filename>include/</filename>. Desde el directorio + <filename>c-client</filename> de su árbol de fuentes IMAP, + copie todos los archivos <filename>*.h</filename> en + <filename>include/</filename> y todos los + <filename>*.c</filename> en + <filename>lib/</filename>. Adicionalmente, cuando haya compilado + IMAP, un archivo llamado <filename>c-client.a</filename> es + creado. Coloque también este archivo en el directorio + <filename>lib/</filename>, pero cambie su nombre a + <filename>libc-client.a</filename>. + </para> + <note> + <para> + Para compilar la biblioteca c-client con soporte SSL o Kerberos, + lea la documentación que viene con el paquete. + </para> + </note> + </section> + + &reference.imap.configure; + + <section id="imap.configuration"> + &reftitle.runtime; + &no.config; + </section> + + <section id="imap.resources"> + &reftitle.resources; + <para> + </para> + </section> + + &reference.imap.constants; + + <section id="imap.seealso"> + &reftitle.seealso; + <para> + Este documento no puede entrar en detalles sobre todos los temas + que involucran lan funciones ofrecidas. Puede encontrar + más información en la documentación de las + fuentes de la biblioteca c-client + (<filename>docs/internal.txt</filename>), y en los siguientes + documentos RFC: + <itemizedlist> + <listitem> + <simpara> + <ulink url="&url.rfc;2821">RFC2821</ulink>: Protocolo Simple + de Transferencia de Correo (SMTP). + </simpara> + </listitem> + <listitem> + <simpara> + <ulink url="&url.rfc;2822">RFC2822</ulink>: Estándar + para los mensajes de texto en internet ARPA. + </simpara> + </listitem> + <listitem> + <simpara> + <ulink url="&url.rfc;2060">RFC2060</ulink>: Protocolo de + Acceso de Mensaje de Internet (IMAP) Versión 4rev1. + </simpara> + </listitem> + <listitem> + <simpara> + <ulink url="&url.rfc;1939">RFC1939</ulink>: Protocolo Post + Office Versión 3 (POP3). + </simpara> + </listitem> + <listitem> + <simpara> + <ulink url="&url.rfc;977">RFC977</ulink>: Protocolo de + Transferencia de Noticias en Red (NNTP). + </simpara> + </listitem> + <listitem> + <simpara> + <ulink url="&url.rfc;2076">RFC2076</ulink>: Cabeceras de + Mensajes de Internet Comunes. + </simpara> + </listitem> + <listitem> + <simpara> + <ulink url="&url.rfc;2045">RFC2045</ulink> , <ulink + url="&url.rfc;2046">RFC2046</ulink> , <ulink + url="&url.rfc;2047">RFC2047</ulink> , <ulink + url="&url.rfc;2048">RFC2048</ulink> & <ulink + url="&url.rfc;2049">RFC2049</ulink>: Extensiones de Correo de + Internet Multi-propósito (MIME). + </simpara> + </listitem> + </itemizedlist> + Una vista general detallada se encuentra disponible + también en los libros <ulink + url="&url.email.book;">Programming Internet Email</ulink> por + David Wood y <ulink url="&url.imap.book;">Managing IMAP</ulink> + por Dianna Mullet y Kevin Mullet. + </para> + </section> </partintro> &reference.imap.functions; @@ -44,5 +153,8 @@ 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/ldap/functions/ldap-err2str.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/ldap/functions/ldap-err2str.xml diff -u phpdoc-es/reference/ldap/functions/ldap-err2str.xml:1.2 phpdoc-es/reference/ldap/functions/ldap-err2str.xml:1.3 --- phpdoc-es/reference/ldap/functions/ldap-err2str.xml:1.2 Tue Jun 24 22:09:39 2003 +++ phpdoc-es/reference/ldap/functions/ldap-err2str.xml Fri Jun 11 04:56:04 2004 @@ -1,45 +1,49 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/ldap.xml, last change in rev 1.1 --> -<!-- last change to 'ldap-err2str' in en/ tree in rev 1.12 --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.3 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.12 --> <refentry id="function.ldap-err2str"> <refnamediv> <refname>ldap_err2str</refname> <refpurpose> - Convierte un código numérico de error LDAP en un mensaje. + Convertir el número de error LDAP a un mensaje de error + tipo cadena </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> - <type>string</type><methodname>ldap_err2str</methodname> - <methodparam><type>int</type><parameter>numerr</parameter></methodparam> + <type>string</type><methodname>ldap_err2str</methodname> + <methodparam><type>int</type><parameter>errno</parameter></methodparam> </methodsynopsis> <para> - Devuelve una cadena con el mensaje de error.</para> + Devuelve el mensaje tipo cadena del error. + </para> <para> - Esta función devuelve una cadena con el mensaje de error - explicativo del código numérico de error numerr. Aunque los - códigos de error LDAP están estandarizados, diferentes librerías - devuelven mensajes textuales de error diferentes o incluso - localizados. Nunca se debe comprobar la existencia de un error - específico por el mensaje textual, sino por el código numérico.</para> + Esta función devuelve el mensaje de error explicando el + número de error <parameter>errno</parameter>. Aunque los + números errno de LDAP están estandarizados, + bibliotecas diferentes devuelven mensajes de error textuales + diferentes o incluso localizados. Nunca revise el texto de un + mensaje de error específico, siempre use un número + de error para efectos de chequeo. + </para> <para> - Var también <function>ldap_errno</function> y + Vea también <function>ldap_errno</function> y <function>ldap_error</function>. - - <example> - <title>Enumerando todos los mensajes de error LDAP</title> - <programlisting role="php"> + <example> + <title>Enumeración de todos los mensajes de error + LDAP</title> +<programlisting role="php"> <![CDATA[ <?php - for($i=0; $i<100; $i++) { - printf("Error $i: %s<br />\n", ldap_str2err($i)); + for ($i=0; $i<100; $i++) { + printf("Error $i: %s<br />\n", ldap_err2str($i)); } ?> ]]> - </programlisting> - </example> - </para> +</programlisting> + </example></para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/math/functions/hypot.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/math/functions/hypot.xml diff -u phpdoc-es/reference/math/functions/hypot.xml:1.2 phpdoc-es/reference/math/functions/hypot.xml:1.3 --- phpdoc-es/reference/math/functions/hypot.xml:1.2 Mon Dec 15 23:43:31 2003 +++ phpdoc-es/reference/math/functions/hypot.xml Fri Jun 11 04:56:04 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.3 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.4 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/math.xml, last change in rev 1.72 --> <refentry id='function.hypot'> <refnamediv> @@ -16,7 +16,6 @@ <methodparam><type>float</type><parameter>num1</parameter></methodparam> <methodparam><type>float</type><parameter>num2</parameter></methodparam> </methodsynopsis> - &warn.experimental.func; <para> &warn.undocumented.func; </para> http://cvs.php.net/diff.php/phpdoc-es/reference/ncurses/constants.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/ncurses/constants.xml diff -u phpdoc-es/reference/ncurses/constants.xml:1.1 phpdoc-es/reference/ncurses/constants.xml:1.2 --- phpdoc-es/reference/ncurses/constants.xml:1.1 Tue Jan 13 23:18:03 2004 +++ phpdoc-es/reference/ncurses/constants.xml Fri Jun 11 04:56:04 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 --> <section id="ncurses.constants"> &reftitle.constants; &extension.constants; http://cvs.php.net/diff.php/phpdoc-es/reference/oci8/reference.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-es/reference/oci8/reference.xml diff -u phpdoc-es/reference/oci8/reference.xml:1.3 phpdoc-es/reference/oci8/reference.xml:1.4 --- phpdoc-es/reference/oci8/reference.xml:1.3 Fri Aug 16 16:47:15 2002 +++ phpdoc-es/reference/oci8/reference.xml Fri Jun 11 04:56:04 2004 @@ -1,25 +1,214 @@ <?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.13 Maintainer: lboshell Status: ready --> <reference id="ref.oci8"> <title>Funciones de Oracle 8</title> <titleabbrev>OCI8</titleabbrev> + <partintro> - <simpara> - Estas funciones permiten acceder a bases de datos Oracle8 y Oracle7. Estas - usan la Oracle8 Call-Interface (OCI8). Necesitará las librerías clientes de Oracle8 - para usar esta extensión. - </simpara> - <simpara> - Esta extensión es más flexible que las estándar de Oracle. - Soporta el enlace de variables locales y globales de PHP con - placeholders de Oracle, tiene soporte completo para LOB, FILE y ROWID - y le permiten usar las variables definidas por el usuario. - </simpara> + <section id="oci8.intro"> + &reftitle.intro; + <para> + Estas funciones le permiten acceder a bases de datos Oracle9, + Oracle8 y Oracle7. Usan la Interfaz de Llamadas Oracle (OCI por + sus siglas en Inglés). + </para> + <para> + Esta extensión es más flexible que la + extensión <link linkend="ref.oracle">antigua de + Oracle</link>. Ésta soporta la vinculación de + variables PHP globales y locales con recipientes Oracle, tiene + soporte completo LOB, FILE y ROWID, y le permite usar variables + de definición entregadas por el usuario. Es recomendable + usar esta extensión en lugar de la extensión <link + linkend="ref.oracle">antigua de Oracle</link> siempre que sea + posible. + </para> + </section> + + <section id="oci8.requirements"> + &reftitle.required; + <para> + Es necesario contar con las bibliotecas de cliente Oracle para + usar esta extensión. Los usuarios de Windows necesitan por + lo menos la versión 8.1 de Oracle para usar + <filename>php_oci8.dll</filename>. + </para> + <para> + Antes de usar esta extensión, asegúrese de haber + configurado apropiadamente sus variables de entorno Oracle para + que correspondan con el usuario de Oracle, así como su + usuario del demonio web. Las variables que necesita definir son + las siguientes: + <itemizedlist> + <listitem> + <simpara> + ORACLE_HOME + </simpara> + </listitem> + <listitem> + <simpara> + ORACLE_SID + </simpara> + </listitem> + <listitem> + <simpara> + LD_PRELOAD + </simpara> + </listitem> + <listitem> + <simpara> + LD_LIBRARY_PATH + </simpara> + </listitem> + <listitem> + <simpara> + NLS_LANG + </simpara> + </listitem> + <listitem> + <simpara> + ORA_NLS33 + </simpara> + </listitem> + </itemizedlist> + </para> + <para> + Después de definir las variables de entorno para su usuario + de servidor web, asegúrese también de agregar al + usuario del servidor web (nobody, www) al grupo oracle. + </para> + <note> + <title>Si su servidor web no arranca, o falla al arrancar</title> + <para> + Verifique que Apache esté enlazado con la biblioteca + pthread: + </para> + <para> + <informalexample> + <screen> +<![CDATA[ +# ldd /www/apache/bin/httpd + libpthread.so.0 => /lib/libpthread.so.0 (0x4001c000) + libm.so.6 => /lib/libm.so.6 (0x4002f000) + libcrypt.so.1 => /lib/libcrypt.so.1 (0x4004c000) + libdl.so.2 => /lib/libdl.so.2 (0x4007a000) + libc.so.6 => /lib/libc.so.6 (0x4007e000) + /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) +]]> + </screen> + </informalexample> + </para> + <para> + Si libpthread no se encuentra en la lista, necesita re-instalar + Apache: + </para> + <para> + <informalexample> + <screen> +<![CDATA[ +# cd /usr/src/apache_1.3.xx +# make clean +# LIBS=-lpthread ./config.status +# make +# make install +]]> + </screen> + </informalexample> + </para> + <para> + Por favor note que en algunos sistemas, como UnixWare, se trata + de libthread en lugar de libpthread. PHP y Apache deben + configurarse con EXTRA_LIBS=-lthread. + </para> + </note> + </section> + + &reference.oci8.configure; + + <section id="oci8.configuration"> + &reftitle.runtime; + &no.config; + </section> + + <section id="oci8.resources"> + &reftitle.resources; + <para> + </para> + </section> + + &reference.oci8.constants; + + <section id="oci8.examples"> + &reftitle.examples; + <para> + <example> + <title>Consejos OCI</title> + <programlisting role="php"> +<![CDATA[ +<?php +// por sergo arroba bacup punto ru + +// Use la opcion OCI_DEFAULT en el comando de ejecucion para aplazar +// la ejecucion +OCIExecute($sentencia, OCI_DEFAULT); + +// para recuperar datos use (despues de fetch): + +$resultado = OCIResult($sentencia, $n); +if (is_object($result)) $resultado = $resultado->load(); + +// Para una sentencia INSERT o UPDATE use: + +$sql = "insert into tabla (campo1, campo2) values (campo1 = 'valor', + campo2 = empty_clob()) returning campo2 into :campo2"; +OCIParse($con, $sql); +$clob = OCINewDescriptor($con, OCI_D_LOB); +OCIBindByName($sentencia, ":campo2", &$clob, -1, OCI_B_CLOB); +OCIExecute($sentencia, OCI_DEFAULT); +$clob->save("cualquier texto"); +OCICommit($con); + +?> +]]> + </programlisting> + </example> + </para> + <para> + Es posible acceder fácilmente a procedimientos almacenados + en la misma forma en que lo haría desde la línea de + comandos. + <example> + <title>Uso de Procedimientos Almacenados</title> + <programlisting role="php"> +<![CDATA[ +<?php +// por webmaster arroba remoterealty punto com +$sth = OCIParse($dbh, "begin proc_nueva_dir( :id_direccion, '$nombre', + '$apellido', '$companyia', '$dir1', '$dir2', '$ciudad', '$estado', + '$cod_postal', '$pais', :cod_error );end;"); + +// Esto llama al procedimiento almacenado proc_nueva_dir, en donde +// :id_direccion es una variable de entrada/salida y :cod_error es una +// variable de salida. +// Entonces crea la vinculacion: + + OCIBindByName($sth, ":id_direccion", $id_direccion, 10); + OCIBindByName($sth, ":cod_error", $cod_error, 10); + OCIExecute($sth); + +?> +]]> + </programlisting> + </example> + </para> + </section> + </partintro> - + &reference.oci8.functions; </reference> - <!-- Keep this comment at the end of the file Local variables: mode: sgml @@ -36,5 +225,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/sybase/functions/sybase-affected-rows.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/sybase/functions/sybase-affected-rows.xml diff -u phpdoc-es/reference/sybase/functions/sybase-affected-rows.xml:1.1 phpdoc-es/reference/sybase/functions/sybase-affected-rows.xml:1.2 --- phpdoc-es/reference/sybase/functions/sybase-affected-rows.xml:1.1 Sun Apr 14 20:19:46 2002 +++ phpdoc-es/reference/sybase/functions/sybase-affected-rows.xml Fri Jun 11 04:56:04 2004 @@ -1,36 +1,62 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/sybase.xml, last change in rev 1.1 --> -<!-- last change to 'sybase-affected-rows' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.7 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/sybase.xml, last change in rev 1.2 --> <refentry id="function.sybase-affected-rows"> <refnamediv> <refname>sybase_affected_rows</refname> - <refpurpose>obtiene el número de filas afectadas por la última consulta</refpurpose> + <refpurpose>Obtiene el número de filas afectadas en la + última consulta</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> - <type>int</type><methodname>sybase_affected_rows</methodname> - <methodparam choice="opt"><type>int</type><parameter>link_identifier - </parameter></methodparam> + <type>int</type><methodname>sybase_affected_rows</methodname> + <methodparam choice="opt"><type>resource</type><parameter>id_enlace</parameter></methodparam> </methodsynopsis> <para> - Devuelve: El número de filas afectadas por la última consulta.</para> + <function>sybase_affected_rows</function> devuelve el + número de filas afectadas por la última consulta + INSERT, UPDATE o DELETE en el servidor asociado con el + identificador de enlace dado. Si no se especifica el + identificador de enlace, se asume el último enlace + abierto. + </para> <para> - <function>sybase_affected_rows</function> devuelve el número de - filas afectadas por la última acción e tipo INSERT, UPDATE o DELETE - en el servidor asociado al identificador de enlace especificado. Si - no se especifica un identificador de enlace, se asume el último enlace - abierto.</para> + <example> + <title>Consulta-Delete</title> + <programlisting role="php"> +<![CDATA[ +<?php + /* conectarse con la base de datos */ + sybase_connect('SYBASE', '', '') or + die("No pudo conectarse"); + sybase_select_db("bd"); + + sybase_query("DELETE FROM alguna_tabla WHERE id < 10"); + printf("Registros eliminados: %d\n", sybase_affected_rows()); +?> +]]> + </programlisting> + <para> + El anterior ejemplo produciría la siguiente salida: + </para> + <screen> +<![CDATA[ + Registros eliminados: 10 +]]> + </screen> + </example> + </para> <para> - Esta instrucción no es efectiva para sentencias de tipo SELECT, sólo - en sentencias que modifican registros. Para obtener el número de filas - afectadas por un SELECT, use <function>sybase_num_rows</function>. - <note> - <para> - Esta función sólo esta disponible usando el interface de la librería - CT, y no con la librería DB. - </para> - </note></para> + Este comando no es efectivo para sentencias SELECT, + únicamente en sentencias que modifican registros. Para + recuperar el número de filas devueltas desde un SELECT, + use <function>sybase_num_rows</function>. &sybase.ct.only; + </para> + <para> + Vea también <function>sybase_num_rows</function>. + </para> </refsect1> </refentry> http://cvs.php.net/co.php/phpdoc-es/reference/domxml/functions/DomDocument-create-element.xml?r=1.1&p=1 Index: phpdoc-es/reference/domxml/functions/DomDocument-create-element.xml +++ phpdoc-es/reference/domxml/functions/DomDocument-create-element.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.7 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 --> <refentry id="function.domdocument-create-element"> <refnamediv> <refname>DomDocument->create_element</refname> <refpurpose>Crear un nuevo nodo de tipo elemento</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>object</type><methodname>DomDocument->create_element</methodname> <methodparam><type>string</type><parameter>nombre</parameter></methodparam> </methodsynopsis> <para> Esta función devuelve una nueva instancia de la clase <classname>DomElement</classname>. El nombre de la etiqueta del elemento es el valor del parámetro pasado. &node.inserted; </para> <para> El valor de retorno es &false; si ocurre un error. </para> <para> Vea también <function>domdocument_create_element_ns</function>, <function>domnode_append_child</function>, <function>domdocument_create_text</function>, <function>domdocument_create_comment</function>, <function>domdocument_create_attribute</function>, <function>domdocument_create_processing_instruction</function>, <function>domdocument_create_entity_reference</function>, y <function>domnode_insert_before</function>. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/phpdoc-es/reference/domxml/functions/DomDocument-create-entity-reference.xml?r=1.1&p=1 Index: phpdoc-es/reference/domxml/functions/DomDocument-create-entity-reference.xml +++ phpdoc-es/reference/domxml/functions/DomDocument-create-entity-reference.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.6 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 --> <refentry id="function.domdocument-create-entity-reference"> <refnamediv> <refname>DomDocument->create_entity_reference</refname> <refpurpose> </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>object</type><methodname>DomDocument->create_entity_reference</methodname> <methodparam><type>string</type><parameter>contenido</parameter></methodparam> </methodsynopsis> <para> Esta función devuelve una nueva instancia de la clase <classname>DomEntityReference</classname>. El contenido de la referencia a entidad es el valor del parámetro pasado. &node.inserted; </para> <para> El valor de retorno es &false; si ocurre un error. </para> <para> Vea también <function>domnode_append_child</function>, <function>domdocument_create_element</function>, <function>domdocument_create_text</function>, <function>domdocument_create_cdata_section</function>, <function>domdocument_create_processing_instruction</function>, <function>domdocument_create_attribute</function>, y <function>domnode_insert_before</function>. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/phpdoc-es/reference/domxml/functions/DomDocument-create-processing-instruction.xml?r=1.1&p=1 Index: phpdoc-es/reference/domxml/functions/DomDocument-create-processing-instruction.xml +++ phpdoc-es/reference/domxml/functions/DomDocument-create-processing-instruction.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.6 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 --> <refentry id="function.domdocument-create-processing-instruction"> <refnamediv> <refname>DomDocument->create_processing_instruction</refname> <refpurpose>Crea un nuevo nodo PI</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>string</type><methodname>DomDocument->create_processing_instruction</methodname> <methodparam><type>string</type><parameter>contenido</parameter></methodparam> </methodsynopsis> <para> Esta función devuelve una nueva instancia de la clase <classname>DomCData</classname>. El contenido de la instrucción de procesamiento es el valor del parámetro pasado. &node.inserted; </para> <para> El valor de retorno es &false; si ocurre un error. </para> <para> Vea también <function>domnode_append_child</function>, <function>domdocument_create_element</function>, <function>domdocument_create_text</function>, <function>domdocument_create_cdata_section</function>, <function>domdocument_create_attribute</function>, <function>domdocument_create_entity_reference</function>, y <function>domnode_insert_before</function>. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/phpdoc-es/reference/domxml/functions/DomDocument-create-text-node.xml?r=1.1&p=1 Index: phpdoc-es/reference/domxml/functions/DomDocument-create-text-node.xml +++ phpdoc-es/reference/domxml/functions/DomDocument-create-text-node.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.6 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 --> <refentry id="function.domdocument-create-text-node"> <refnamediv> <refname>DomDocument->create_text_node</refname> <refpurpose>Crear un nuevo nodo de texto</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>object</type><methodname>DomDocument->create_text_node</methodname> <methodparam><type>string</type><parameter>contenido</parameter></methodparam> </methodsynopsis> <para> Esta función devuelve una nueva instancia de la clase <classname>DomText</classname>. El contenido del texto es el valor del parámetro pasado. &node.inserted; </para> <para> El valor de retorno es &false; si ocurre un error. </para> <para> Vea también <function>domnode_append_child</function>, <function>domdocument_create_element</function>, <function>domdocument_create_comment</function>, <function>domdocument_create_text</function>, <function>domdocument_create_attribute</function>, <function>domdocument_create_processing_instruction</function>, <function>domdocument_create_entity_reference</function>, y <function>domnode_insert_before</function>. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/phpdoc-es/reference/domxml/functions/DomDocument-doctype.xml?r=1.1&p=1 Index: phpdoc-es/reference/domxml/functions/DomDocument-doctype.xml +++ phpdoc-es/reference/domxml/functions/DomDocument-doctype.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 --> <refentry id="function.domdocument-doctype"> <refnamediv> <refname>DomDocument->doctype</refname> <refpurpose> Devuelve el tipo de documento </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>object</type><methodname>DomDocument->doctype</methodname> <void/> </methodsynopsis> <para> Esta función devuelve un objeto de la clase <classname>DomDocumentType</classname>. En versiones de PHP anteriores a 4.3, esta era la clase <classname>Dtd</classname>, pero el estándar DOM no conoce tal clase. </para> <para> Vea también los métodos de la clase <classname>DomDocumentType</classname>. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/phpdoc-es/reference/domxml/functions/DomDocument-document-element.xml?r=1.1&p=1 Index: phpdoc-es/reference/domxml/functions/DomDocument-document-element.xml +++ phpdoc-es/reference/domxml/functions/DomDocument-document-element.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.4 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/domxml.xml, last change in rev 1.6 --> <refentry id="function.domdocument-document-element"> <refnamediv> <refname>DomDocument->document_element</refname> <refpurpose> Devuelve el nodo del elemento raíz </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>object</type><methodname>DomDocument->document_element</methodname> <void/> </methodsynopsis> <para> Esta función devuelve el nodo de elemento raíz de un documento. </para> <para> El siguiente ejemplo devuelve tan solo el elemento con nombre CHAPTER y lo imprime. El otro nodo -- el comentario -- no es devuelto. <example> <title>Recuperar el elemento raíz</title> <programlisting role="php"> <![CDATA[ <?php include("ejemplo.inc"); if (!$dom = domxml_open_mem($cadena_xml)) { echo "Ha ocurrido un error al procesar el documento\n"; exit; } $raiz = $dom->document_element(); print_r($raiz); ?> ]]> </programlisting> </example> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/phpdoc-es/reference/domxml/functions/DomDocument-dump-file.xml?r=1.1&p=1 Index: phpdoc-es/reference/domxml/functions/DomDocument-dump-file.xml +++ phpdoc-es/reference/domxml/functions/DomDocument-dump-file.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.5 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/domxml.xml, last change in rev 1.6 --> <refentry id="function.domdocument-dump-file"> <refnamediv> <refname>DomDocument->dump_file</refname> <refpurpose> Vuelca el árbol XML interno de vuelta a un archivo </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>string</type><methodname>DomDocument->dump_file</methodname> <methodparam><type>string</type><parameter>nombre_archivo</parameter></methodparam> <methodparam choice="opt"><type>bool</type><parameter>modo_compresion</parameter></methodparam> <methodparam choice="opt"><type>bool</type><parameter>formato</parameter></methodparam> </methodsynopsis> <para> Crea un documento XML desde la representación dom. Esta función es llamada por lo general después de construir un nuevo documento dom desde ceros como en el ejemplo a continuación. El <parameter>formato</parameter> especifica si la salida debe tener un formato elegante, o no. El primer parámetro especifica el nombre del archivo y el segundo parámetro, si debe comprimirse o no. </para> <para> <example> <title>Creación de una cabecera de un documento HTML simple</title> <programlisting role="php"> <![CDATA[ <?php $doc = domxml_new_doc("1.0"); $raiz = $doc->create_element("HTML"); $raiz = $doc->append_child($raiz); $cabecera = $doc->create_element("HEAD"); $cabecera = $raiz->append_child($cabecera); $titulo = $doc->create_element("TITLE"); $titulo = $cabecera->append_child($titulo); $texto = $doc->create_text_node("Este es el título"); $texto = $titulo->append_child($texto); $doc->dump_file("/tmp/prueba.xml", false, true); ?> ]]> </programlisting> </example> </para> <para> Vea también <function>domdocument_dump_mem</function>, y <function>domdocument_html_dump_mem</function>. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/phpdoc-es/reference/domxml/functions/DomDocument-dump-mem.xml?r=1.1&p=1 Index: phpdoc-es/reference/domxml/functions/DomDocument-dump-mem.xml +++ phpdoc-es/reference/domxml/functions/DomDocument-dump-mem.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.6 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/domxml.xml, last change in rev 1.6 --> <refentry id="function.domdocument-dump-mem"> <refnamediv> <refname>DomDocument->dump_mem</refname> <refpurpose> Vuelca el árbol XML interno de vuelta a una cadena </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>string</type><methodname>DomDocument->dump_mem</methodname> <methodparam choice="opt"><type>bool</type><parameter>formato</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>codificacion</parameter></methodparam> </methodsynopsis> &warn.experimental.func; <para> Crea un documento XML desde la representación dom. Esta función es llamada por lo general después de construir un nuevo documento dom desde ceros como en el ejemplo a continuación. El <parameter>formato</parameter> especifica si la salida debe tener un formato elegante, o no. </para> <para> <example> <title>Creación de una cabecera de un documento HTML simple</title> <programlisting role="php"> <![CDATA[ <?php $doc = domxml_new_doc("1.0"); $raiz = $doc->create_element("HTML"); $raiz = $doc->append_child($raiz); $cabecera = $doc->create_element("HEAD"); $cabecera = $raiz->append_child($cabecera); $titulo = $doc->create_element("TITLE"); $titulo = $cabecera->append_child($titulo); $texto = $doc->create_text_node("This is the title"); $texto = $titulo->append_child($texto); echo "<PRE>"; echo htmlentities($doc->dump_mem(true)); echo "</PRE>"; ?> ]]> </programlisting> </example> </para> <note> <para> El primer parámetro fue agregado en PHP 4.3.0. </para> </note> <para> Vea también <function>domdocument_dump_file</function>, y <function>domdocument_html_dump_mem</function>. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/phpdoc-es/reference/domxml/functions/DomDocument-get-element-by-id.xml?r=1.1&p=1 Index: phpdoc-es/reference/domxml/functions/DomDocument-get-element-by-id.xml +++ phpdoc-es/reference/domxml/functions/DomDocument-get-element-by-id.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.5 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 --> <refentry id="function.domdocument-get-element-by-id"> <refnamediv> <refname>DomDocument->get_element_by_id</refname> <refpurpose> Busca un elemento con cierto id </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>object</type><methodname>DomDocument->get_element_by_id</methodname> <methodparam><type>string</type><parameter>id</parameter></methodparam> </methodsynopsis> <para> Esta función es similar a <function>domdocument_get_elements_by_tagname</function>, pero busca un elemento con un id dado. De acuerdo al estándar DOM, esto requiere un DTD que defina el atributo ID como de tipo ID, aunque la implementación actual simplemente realiza una búsqueda xpath por "//*[@ID = '%s']". Esto no es fiel al estándar DOM, el cual requiere que se devuelva un valor nulo si no se conoce cuál atributo es de tipo id. Es probable que este comportamiento sea corregido, de modo que no depende del modo que opera ahora. </para> <para> Vea también <function>domdocument_get_elements_by_tagname</function> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/phpdoc-es/reference/domxml/functions/DomDocument-get-elements-by-tagname.xml?r=1.1&p=1 Index: phpdoc-es/reference/domxml/functions/DomDocument-get-elements-by-tagname.xml +++ phpdoc-es/reference/domxml/functions/DomDocument-get-elements-by-tagname.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.4 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 --> <refentry id="function.domdocument-get-elements-by-tagname"> <refnamediv> <refname>DomDocument->get_elements_by_tagname</refname> <refpurpose> </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>array</type><methodname>DomDocument->get_elements_by_tagname</methodname> <methodparam><type>string</type><parameter>nombre</parameter></methodparam> </methodsynopsis> <para> </para> <para> Vea también <function>domdocument_add_root</function> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/phpdoc-es/reference/domxml/functions/DomDocument-html-dump-mem.xml?r=1.1&p=1 Index: phpdoc-es/reference/domxml/functions/DomDocument-html-dump-mem.xml +++ phpdoc-es/reference/domxml/functions/DomDocument-html-dump-mem.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.5 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/domxml.xml, last change in rev 1.6 --> <refentry id="function.domdocument-html-dump-mem"> <refnamediv> <refname>DomDocument->html_dump_mem</refname> <refpurpose> Vuelca el árbol XML interno de vuelta a una cadena como HTML </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>string</type><methodname>DomDocument->html_dump_mem</methodname> <void/> </methodsynopsis> <para> Crea un documento HTML para la representación dom. Por lo general, esta función es llamada después de construier un nuevo documento dom desde ceros, como en el siguiente ejemplo. </para> <para> <example> <title>Creación de una cabecera de documento HTML simple</title> <programlisting role="php"> <![CDATA[ <?php $doc = domxml_new_doc("1.0"); $raiz = $doc->create_element("HTML"); $raiz = $doc->append_child($raiz); $cabecera = $doc->create_element("HEAD"); $cabecera = $raiz->append_child($cabecera); $titulo = $doc->create_element("TITLE"); $titulo = $cabecera->append_child($titulo); $texto = $doc->create_text_node("This is the title"); $texto = $titulo->append_child($texto); echo "<PRE>"; echo htmlentities($doc->html_dump_mem()); echo "</PRE>"; ?> ]]> </programlisting> </example> </para> <para> Vea también <function>domdocument_dump_file</function>, y <function>domdocument_html_dump_mem</function>. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/phpdoc-es/reference/domxml/functions/DomDocument-xinclude.xml?r=1.1&p=1 Index: phpdoc-es/reference/domxml/functions/DomDocument-xinclude.xml +++ phpdoc-es/reference/domxml/functions/DomDocument-xinclude.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: lboshell Status: ready --> <refentry id="function.domdocument-xinclude"> <refnamediv> <refname>DomDocument->xinclude</refname> <refpurpose> Reemplaza sentencias XInclude en un Objeto DomDocument. </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>int</type><methodname>DomDocument->xinclude</methodname> <void/> </methodsynopsis> &warn.experimental.func; &warn.undocumented.func; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/phpdoc-es/reference/domxml/functions/DomDocumentType-entities.xml?r=1.1&p=1 Index: phpdoc-es/reference/domxml/functions/DomDocumentType-entities.xml +++ phpdoc-es/reference/domxml/functions/DomDocumentType-entities.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 --> <refentry id='function.domdocumenttype-entities'> <refnamediv> <refname>DomDocumentType->entities</refname> <refpurpose> Devuelve una lista de entidades </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>array</type><methodname>DomDocumentType->entities</methodname> <void/> </methodsynopsis> <para> &warn.undocumented.func; </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->
http://cvs.php.net/diff.php/phpdoc-es/reference/filesystem/functions/is-dir.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/filesystem/functions/is-dir.xml diff -u phpdoc-es/reference/filesystem/functions/is-dir.xml:1.1 phpdoc-es/reference/filesystem/functions/is-dir.xml:1.2 --- phpdoc-es/reference/filesystem/functions/is-dir.xml:1.1 Sun Apr 14 20:13:59 2002 +++ phpdoc-es/reference/filesystem/functions/is-dir.xml Fri Jun 11 04:56:03 2004 @@ -1,27 +1,57 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/filesystem.xml, last change in rev 1.1 --> -<!-- last change to 'is-dir' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.9 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 --> <refentry id="function.is-dir"> <refnamediv> <refname>is_dir</refname> - <refpurpose>Dice si el fichero nombrado es un directorio</refpurpose> + <refpurpose>Indica si el nombre de archivo es un + directorio</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> - <type>bool</type><methodname>is_dir</methodname> - <methodparam><type>string</type><parameter>filename</parameter></methodparam> + <type>bool</type><methodname>is_dir</methodname> + <methodparam><type>string</type><parameter>nombre_archivo</parameter></methodparam> </methodsynopsis> <para> - Devuelve &true; si el nombre del fichero existe y es un directorio. + Devuelve &true; si el archivo con el nombre dado existe y es un + directorio. Si <parameter>nombre_archivo</parameter> es un nombre + de archivo relativo, éste será analizado relativo + al directorio de trabajo actual. </para> + ¬e.clearstatcache; <para> - Los resultados de esta función son cacheados. Ver - <function>clearstatcache</function> para más detalles. - </para> + <example> + <title>Ejemplo de <function>is_dir</function></title> + <programlisting role="php"> +<![CDATA[ +<? +var_dump(is_dir('un_archivo.txt')) . "\n"; +var_dump(is_dir('directorio_falso/abc')) . "\n"; + +var_dump(is_dir('..')); //un directorio arriba +?> +]]> + </programlisting> + <para> + El ejemplo anterior produciría la salida: + </para> + <screen> +<![CDATA[ +bool(false) +bool(false) +bool(true) +]]> + </screen> + </example> + </para> + &tip.fopen-wrapper.stat; + <para> - Ver también <function>is_file</function> y - <function>is_link</function>. + Vea también <function>chdir</function>, <link + linkend="class.dir">dir</link>, <function>opendir</function>, + <function>is_file</function> y <function>is_link</function>. </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/filesystem/functions/is-executable.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/filesystem/functions/is-executable.xml diff -u phpdoc-es/reference/filesystem/functions/is-executable.xml:1.1 phpdoc-es/reference/filesystem/functions/is-executable.xml:1.2 --- phpdoc-es/reference/filesystem/functions/is-executable.xml:1.1 Sun Apr 14 20:13:59 2002 +++ phpdoc-es/reference/filesystem/functions/is-executable.xml Fri Jun 11 04:56:03 2004 @@ -1,26 +1,54 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/filesystem.xml, last change in rev 1.1 --> -<!-- last change to 'is-executable' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.11 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 --> <refentry id="function.is-executable"> <refnamediv> <refname>is_executable</refname> - <refpurpose>Dice si el fichero nombrado es ejecutable</refpurpose> + <refpurpose>Indica si el archivo es ejecutable</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> - <type>bool</type><methodname>is_executable</methodname> - <methodparam><type>string</type><parameter>filename</parameter></methodparam> + <type>bool</type><methodname>is_executable</methodname> + <methodparam><type>string</type><parameter>nombre_archivo</parameter></methodparam> </methodsynopsis> <para> - Devuelve &true; si el fichero indicado existe y es ejecutable. + Devuelve &true; si el archivo con el nombre dado existe y es + ejecutable. </para> <para> - Los resultados de esta función son cacheados. Ver - <function>clearstatcache</function> para más detalles. + <function>is_executable</function> apareció en + <productname>Windows</productname> en la versión 5.0.0 de + PHP. </para> <para> - Ver también <function>is_file</function> y + <example> + <title>Ejemplo de <function>is_executable</function></title> + <programlisting role="php"> +<![CDATA[ +<?php + +$archivo = '/home/vincent/algun_archivo.sh'; + +if (is_executable($archivo)) { + echo $archivo.' es ejecutable'; +} else { + echo $archivo.' no es ejecutable'; +} + +?> +]]> + </programlisting> + </example> + </para> + + ¬e.clearstatcache; + + &tip.fopen-wrapper.stat; + + <para> + Vea también <function>is_file</function> y <function>is_link</function>. </para> </refsect1> http://cvs.php.net/diff.php/phpdoc-es/reference/filesystem/functions/is-file.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/filesystem/functions/is-file.xml diff -u phpdoc-es/reference/filesystem/functions/is-file.xml:1.1 phpdoc-es/reference/filesystem/functions/is-file.xml:1.2 --- phpdoc-es/reference/filesystem/functions/is-file.xml:1.1 Sun Apr 14 20:13:59 2002 +++ phpdoc-es/reference/filesystem/functions/is-file.xml Fri Jun 11 04:56:03 2004 @@ -1,28 +1,29 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/filesystem.xml, last change in rev 1.1 --> -<!-- last change to 'is-file' 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.is-file"> <refnamediv> <refname>is_file</refname> - <refpurpose> - Dice si el fichero nombrado es un fichero regular - </refpurpose> + <refpurpose>Indica si el archivo es un archivo regular</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> - <type>bool</type><methodname>is_file</methodname> - <methodparam><type>string</type><parameter>filename</parameter></methodparam> + <type>bool</type><methodname>is_file</methodname> + <methodparam><type>string</type><parameter>nombre_archivo</parameter></methodparam> </methodsynopsis> <para> - Devuelve &true; si el fichero nombrado existe y es un fichero regular. + Devuelve &true; si el archivo con el nombre dado existe y es un + archivo regular. </para> + + ¬e.clearstatcache; + + &tip.fopen-wrapper.stat; + <para> - Los resultados de esta función son cacheados. Ver - <function>clearstatcache</function> para más detalles. - </para> - <para> - Ver también <function>is_dir</function> y + Vea también <function>is_dir</function> y <function>is_link</function>. </para> </refsect1> http://cvs.php.net/diff.php/phpdoc-es/reference/filesystem/functions/is-link.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/filesystem/functions/is-link.xml diff -u phpdoc-es/reference/filesystem/functions/is-link.xml:1.1 phpdoc-es/reference/filesystem/functions/is-link.xml:1.2 --- phpdoc-es/reference/filesystem/functions/is-link.xml:1.1 Sun Apr 14 20:13:59 2002 +++ phpdoc-es/reference/filesystem/functions/is-link.xml Fri Jun 11 04:56:03 2004 @@ -1,29 +1,31 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/filesystem.xml, last change in rev 1.1 --> -<!-- last change to 'is-link' 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.is-link"> <refnamediv> <refname>is_link</refname> - <refpurpose> - Dice si el fichero indicado es un enlace simbólico - </refpurpose> + <refpurpose>Indica si el archivo es un enlace + simbólico</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> - <type>bool</type><methodname>is_link</methodname> - <methodparam><type>string</type><parameter>filename</parameter></methodparam> + <type>bool</type><methodname>is_link</methodname> + <methodparam><type>string</type><parameter>nombre_archivo</parameter></methodparam> </methodsynopsis> <para> - Devuelve &true; si el fichero indicado existe y es un enlace simbólico. + Devuelve &true; si el archivo con el nombre dado existe y es un + enlace simbólico. </para> + + ¬e.clearstatcache; + + &tip.fopen-wrapper.stat; + <para> - Los resultados de esta función son cacheados. Ver - <function>clearstatcache</function> para más detalles. - </para> - <para> - Ver también <function>is_dir</function> y - <function>is_file</function>. + Vea también <function>is_dir</function>, + <function>is_file</function>, y <function>readlink</function>. </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/ftp/functions/ftp-chmod.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/ftp/functions/ftp-chmod.xml diff -u phpdoc-es/reference/ftp/functions/ftp-chmod.xml:1.2 phpdoc-es/reference/ftp/functions/ftp-chmod.xml:1.3 --- phpdoc-es/reference/ftp/functions/ftp-chmod.xml:1.2 Fri Dec 19 16:18:27 2003 +++ phpdoc-es/reference/ftp/functions/ftp-chmod.xml Fri Jun 11 04:56:03 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.3 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.4 Maintainer: lboshell Status: ready --> <refentry id="function.ftp-chmod"> <refnamediv> <refname>ftp_chmod</refname> @@ -15,9 +15,10 @@ <methodparam><type>string</type><parameter>nombre_archivo</parameter></methodparam> </methodsynopsis> <para> -Establece los permisos sobre el archivo remoto especificado por -<parameter>nombre_archivo</parameter> a <parameter>modo</parameter>, -dado como un valor <emphasis>octal</emphasis>. + Establece los permisos sobre el archivo remoto especificado por + <parameter>nombre_archivo</parameter> a + <parameter>modo</parameter>, dado como un valor + <emphasis>octal</emphasis>. </para> <para> <example> @@ -48,8 +49,8 @@ </example> </para> <para> -Devuelve los nuevos permisos del archivo en caso de éxito, o -&false; si ocurre un fallo. + Devuelve los nuevos permisos del archivo en caso de éxito, + o &false; si ocurre un fallo. </para> <para> Vea también <function>chmod</function>. http://cvs.php.net/diff.php/phpdoc-es/reference/image/functions/imagettftext.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/image/functions/imagettftext.xml diff -u phpdoc-es/reference/image/functions/imagettftext.xml:1.1 phpdoc-es/reference/image/functions/imagettftext.xml:1.2 --- phpdoc-es/reference/image/functions/imagettftext.xml:1.1 Sun Apr 14 20:14:53 2002 +++ phpdoc-es/reference/image/functions/imagettftext.xml Fri Jun 11 04:56:03 2004 @@ -1,83 +1,114 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/image.xml, last change in rev 1.1 --> -<!-- last change to 'imagettftext' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.10 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/image.xml, last change in rev 1.2 --> <refentry id="function.imagettftext"> <refnamediv> - <refname>ImageTTFText</refname> - <refpurpose>Escribe texto en la imagen usando fuentes TrueType</refpurpose> + <refname>imagettftext</refname> + <refpurpose>Escribir un texto sobre la imagen usando fuentes + TrueType</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> - <methodsynopsis> - <type>array</type><methodname>ImageTTFText</methodname> - <methodparam><type>int</type><parameter>im</parameter></methodparam> - <methodparam><type>int</type><parameter>size</parameter></methodparam> - <methodparam><type>int</type><parameter>angle</parameter></methodparam> + <methodsynopsis> + <type>array</type><methodname>imagettftext</methodname> + <methodparam><type>resource</type><parameter>imagen</parameter></methodparam> + <methodparam><type>int</type><parameter>tamanyo</parameter></methodparam> + <methodparam><type>int</type><parameter>angulo</parameter></methodparam> <methodparam><type>int</type><parameter>x</parameter></methodparam> <methodparam><type>int</type><parameter>y</parameter></methodparam> - <methodparam><type>int</type><parameter>col</parameter></methodparam> - <methodparam><type>string</type><parameter>fontfile</parameter></methodparam> - <methodparam><type>string</type><parameter>text</parameter></methodparam> - </methodsynopsis> - <para> - ImageTTFText escribe la cadena<parameter>text</parameter> en la - imagen identificada por <parameter>im</parameter>, comenzando en - las coordenadas <parameter>x,y</parameter> (arriba izquierda es 0,0), - con un ángulo de <parameter>angle</parameter> en el color - <parameter>col</parameter>, usando el ficheor de fuente TrueType - identificado por <parameter>fontfile</parameter>.</para> - <para> - Las coordenadas dadas por - <parameter>x</parameter>,<parameter>y</parameter> definirán el punto - base del primer carácter. (la esquina inferior izquierda del carácter). - Esto es diferente de la función <function>ImageString</function>, - donde x,y definen la esquina superior derecha del primer carácter.</para> - <para> - El <parameter>angle</parameter> viene dado en grados, donde 0 grados - representa el texto de izquierda a derecha (dirección las 3 en punto), - y valores superiores representan una rotación en el sentido de las - agujas de un reloj. (ej. un valor de 90 representaría un texto que fuese - de abajo hacia arriba).</para> - <para> - <parameter>fontfile</parameter> es la ruta hacia la fuente TrueType - que desee usar.</para> - <para> - <parameter>text</parameter> es la cadena de texto que puede incluir - secuencias de caracteres UTF-8 (de la forma: &123; ) para acceder - a caracteres de la fuente más allá de los primeros 255.</para> - <para> - <parameter>col</parameter> es el índice de color. El uso de - un índice de color negativo tiene el efecto de desactivar - el antialiasing.</para> - <para> - <function>ImageTTFText</function> devuelve una matriz con 8 - elementos representando cuatro puntos que hace una caja que cubre - el texto.El orden de los puntos en arriba izquierda, arriba derecha, - abajo derecha, abajo izquierda. Los puntos son relativos al texto - a pesar del ángulo, por lo que "arriba izquierda" significa en - la esquina superior izquierda cuando ve el texto horizontalmente.</para> - <para> - Este script de ejemplo producirá un GIF negro de 400x30 pixels, con - las palabras "Testing..." en blanco con la fuente Arial. + <methodparam><type>int</type><parameter>color</parameter></methodparam> + <methodparam><type>string</type><parameter>archivo_fuente</parameter></methodparam> + <methodparam><type>string</type><parameter>texto</parameter></methodparam> + </methodsynopsis> + <para> + <function>imagettftext</function> dibuja la cadena + <parameter>texto</parameter> en la imagen identificada por + <parameter>imagen</parameter>, comenzando en las coordenadas + <parameter>x</parameter>, <parameter>y</parameter> (la esquina + superior izquierda es 0, 0), a un ángulo de + <parameter>angulo</parameter> en el color + <parameter>color</parameter>, usando el archivo de fuente + TrueType identificado por + <parameter>archivo_fuente</parameter>. Dependiendo en la + versión de la biblioteca GD que PHP usa, cuando + <parameter>archivo_fuente</parameter> no comienza con un caracter + '/', '.ttf' se agregará al nombre de archivo y la + biblioteca intentará buscar por ese archivo en una ruta de + fuentes definida por la biblioteca. + </para> + <para> + Las coordenadas dadas por <parameter>x</parameter>, + <parameter>y</parameter> definirán el punto base del + primer caracter (a grandes rasgos la esquina inferior izquierda + del caracter). Esto a diferencia de + <function>imagestring</function>, en donde x, y definen la + esquina superior derecha del primer caracter. + </para> + <para> + <parameter>angulo</parameter> se encuentra en grados, en donde el + grado 0 produce la lectura del texto de izquierda a derecha (en + dirección de las 3 en punto), y los valores más + altos representan una rotación en sentido contrario al de + las manecillas del reloj. (Es decir, un valor de 90 + resultarío en un texto que se lee de abajo a arriba). + </para> + <para> + <parameter>archivo_fuente</parameter> es la ruta a la fuente + TrueType que desea usar. + </para> + <para> + <parameter>texto</parameter> es la cadena de texto, que puede + incluir secuencias de caracteres UTF-8 (de la forma: &#123;) + para acceder a caracteres más alla de los primeros 255 en + una fuente. + </para> + <para> + <parameter>color</parameter> es el índice de color. El uso + del valor negativo de un índice de color tiene el efecto + de deshabilitar el anti-alias. + </para> + <para> + <function>imagettftext</function> devuelve una matriz con 8 + elementos que representan cuatro puntos que forman la caja + circundante del texto. El orden de los puntos es inferior + izquierdo, inferior derecho, superior derecho y superior + izquierdo. Los puntos son relativos al texto independientemente + del ángulo, así que "superior izquierdo" quiere + decir la esquina del lado superior izquierdo cuando ve el texto + horizontalmente. + </para> + <para> + Este script de ejemplo producirá un JPEG negro de 400x30 + pixeles, con las palabras "Probando..." en blanco en la fuente + Arial. <example> - <title>ImageTTFText</title> - <programlisting> -<?php -Header("Content-type: image/gif"); -$im = imagecreate(400,30); -$black = ImageColorAllocate($im, 0,0,0); -$white = ImageColorAllocate($im, 255,255,255); -ImageTTFText($im, 20, 0, 10, 20, $white, "/path/arial.ttf", "Testing... Omega: &#937;"); -ImageGif($im); -ImageDestroy($im); -?> -</programlisting></example></para> - - <para> - Esta función requiere la libreria GD y la libreria - <ulink url="&url.freetype;">FreeType</ulink>.</para> + <title>Ejemplo de <function>imagettftext</function></title> + <programlisting role="php"> +<![CDATA[ +<?php + header("Content-type: image/jpeg"); + $im = imagecreate(400, 30); + $blanco = imagecolorallocate($im, 255, 255, 255); + $negro = imagecolorallocate($im, 0, 0, 0); + + // Reemplaze la ruto con su propio ruta a la fuente + imagettftext($im, 20, 0, 10, 20, $negro, "/ruta/a/arial.ttf", + "Probando... Omega: &#937;"); + imagejpeg($im); + imagedestroy($im); +?> +]]> + </programlisting> + </example> + </para> + <para> + Esta función requiere tanto la biblioteca GD como la + biblioteca <ulink url="&url.freetype;">FreeType</ulink>. + </para> <para> - Vea también <function>ImageTTFBBox</function>.</para> + Vea también <function>imagettfbbox</function>. + </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/imap/reference.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/imap/reference.xml diff -u phpdoc-es/reference/imap/reference.xml:1.2 phpdoc-es/reference/imap/reference.xml:1.3 --- phpdoc-es/reference/imap/reference.xml:1.2 Mon Apr 15 20:31:42 2002 +++ phpdoc-es/reference/imap/reference.xml Fri Jun 11 04:56:04 2004 @@ -1,28 +1,137 @@ <?xml version="1.0" encoding="iso-8859-1"?> - <reference id="ref.imap"> - <title>Funciones IMAP</title> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.14 Maintainer: lboshell Status: ready --> + <reference id='ref.imap'> + <title>Funciones IMAP, POP3 y NNTP</title> <titleabbrev>IMAP</titleabbrev> <partintro> - <simpara> - Para hacer funcionar estas funciones, debe compilar PHP con - <option role="configure">--with-imap</option>. Esto requiere que - la libreria c-client esté instalada. Obtenga la última versión de - <ulink url="&url.imap;">&url.imap;</ulink> y compílela. Luego - copie <filename>c-client/c-client.a</filename> al directorio - <filename>/usr/local/lib</filename> o a cualquier otro directorio - de su LINK path y copie <filename>c-client/rfc822.h</filename>, - <filename>mail.h</filename> y <filename>linkage.h</filename> al directorio - <filename>/usr/local/include</filename> o a cualquier otro de su INCLUDE - path. - </simpara> - <simpara> - Decir que estas funciones no están limitadas al protocolo - <acronym>IMAP</acronym>, a pesar de sus nombres. La librería subyacente - c-client también soporta <acronym>NNTP</acronym>, <acronym>POP3</acronym> - y métodos de acceso local a buzones de correo. Vea <function>imap_open</function> - para una mayor información. - </simpara> + <section id="imap.intro"> + &reftitle.intro; + <para> + Estas funciones no se encuentran limitadas al protocolo + <acronym>IMAP</acronym>, a pesar de su nombre. La biblioteca + c-client interna también soporta métodos de acceso + a <acronym>NNTP</acronym>, <acronym>POP3</acronym> y buzones de + correo locales. + </para> + </section> + + <section id="imap.requirements"> + &reftitle.required; + <para> + Esta extensión requiere que la biblioteca c-client se + encuentre instalada. Obtenga la versión más + reciente de <ulink url="&url.imap;">&url.imap;</ulink> y + compílela. + </para> + <para> + Es importante que no copie los archivos fuente IMAP directamente + al directorio de inclusiones del sistema ya que puede crear + conflictos. En su lugar, cree un nuevo directorio al interior del + directorio de inclusiones del sistema, tal como + <filename>/usr/local/imap-2000b/</filename> (la ubicación + y nombre dependen de su configuración y versión de + IMAP), y al interior de este directorio nuevo cree los + directorios adicionales con nombres <filename>lib/</filename> e + <filename>include/</filename>. Desde el directorio + <filename>c-client</filename> de su árbol de fuentes IMAP, + copie todos los archivos <filename>*.h</filename> en + <filename>include/</filename> y todos los + <filename>*.c</filename> en + <filename>lib/</filename>. Adicionalmente, cuando haya compilado + IMAP, un archivo llamado <filename>c-client.a</filename> es + creado. Coloque también este archivo en el directorio + <filename>lib/</filename>, pero cambie su nombre a + <filename>libc-client.a</filename>. + </para> + <note> + <para> + Para compilar la biblioteca c-client con soporte SSL o Kerberos, + lea la documentación que viene con el paquete. + </para> + </note> + </section> + + &reference.imap.configure; + + <section id="imap.configuration"> + &reftitle.runtime; + &no.config; + </section> + + <section id="imap.resources"> + &reftitle.resources; + <para> + </para> + </section> + + &reference.imap.constants; + + <section id="imap.seealso"> + &reftitle.seealso; + <para> + Este documento no puede entrar en detalles sobre todos los temas + que involucran lan funciones ofrecidas. Puede encontrar + más información en la documentación de las + fuentes de la biblioteca c-client + (<filename>docs/internal.txt</filename>), y en los siguientes + documentos RFC: + <itemizedlist> + <listitem> + <simpara> + <ulink url="&url.rfc;2821">RFC2821</ulink>: Protocolo Simple + de Transferencia de Correo (SMTP). + </simpara> + </listitem> + <listitem> + <simpara> + <ulink url="&url.rfc;2822">RFC2822</ulink>: Estándar + para los mensajes de texto en internet ARPA. + </simpara> + </listitem> + <listitem> + <simpara> + <ulink url="&url.rfc;2060">RFC2060</ulink>: Protocolo de + Acceso de Mensaje de Internet (IMAP) Versión 4rev1. + </simpara> + </listitem> + <listitem> + <simpara> + <ulink url="&url.rfc;1939">RFC1939</ulink>: Protocolo Post + Office Versión 3 (POP3). + </simpara> + </listitem> + <listitem> + <simpara> + <ulink url="&url.rfc;977">RFC977</ulink>: Protocolo de + Transferencia de Noticias en Red (NNTP). + </simpara> + </listitem> + <listitem> + <simpara> + <ulink url="&url.rfc;2076">RFC2076</ulink>: Cabeceras de + Mensajes de Internet Comunes. + </simpara> + </listitem> + <listitem> + <simpara> + <ulink url="&url.rfc;2045">RFC2045</ulink> , <ulink + url="&url.rfc;2046">RFC2046</ulink> , <ulink + url="&url.rfc;2047">RFC2047</ulink> , <ulink + url="&url.rfc;2048">RFC2048</ulink> & <ulink + url="&url.rfc;2049">RFC2049</ulink>: Extensiones de Correo de + Internet Multi-propósito (MIME). + </simpara> + </listitem> + </itemizedlist> + Una vista general detallada se encuentra disponible + también en los libros <ulink + url="&url.email.book;">Programming Internet Email</ulink> por + David Wood y <ulink url="&url.imap.book;">Managing IMAP</ulink> + por Dianna Mullet y Kevin Mullet. + </para> + </section> </partintro> &reference.imap.functions; @@ -44,5 +153,8 @@ 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/ldap/functions/ldap-err2str.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/ldap/functions/ldap-err2str.xml diff -u phpdoc-es/reference/ldap/functions/ldap-err2str.xml:1.2 phpdoc-es/reference/ldap/functions/ldap-err2str.xml:1.3 --- phpdoc-es/reference/ldap/functions/ldap-err2str.xml:1.2 Tue Jun 24 22:09:39 2003 +++ phpdoc-es/reference/ldap/functions/ldap-err2str.xml Fri Jun 11 04:56:04 2004 @@ -1,45 +1,49 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/ldap.xml, last change in rev 1.1 --> -<!-- last change to 'ldap-err2str' in en/ tree in rev 1.12 --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.3 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.12 --> <refentry id="function.ldap-err2str"> <refnamediv> <refname>ldap_err2str</refname> <refpurpose> - Convierte un código numérico de error LDAP en un mensaje. + Convertir el número de error LDAP a un mensaje de error + tipo cadena </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> - <type>string</type><methodname>ldap_err2str</methodname> - <methodparam><type>int</type><parameter>numerr</parameter></methodparam> + <type>string</type><methodname>ldap_err2str</methodname> + <methodparam><type>int</type><parameter>errno</parameter></methodparam> </methodsynopsis> <para> - Devuelve una cadena con el mensaje de error.</para> + Devuelve el mensaje tipo cadena del error. + </para> <para> - Esta función devuelve una cadena con el mensaje de error - explicativo del código numérico de error numerr. Aunque los - códigos de error LDAP están estandarizados, diferentes librerías - devuelven mensajes textuales de error diferentes o incluso - localizados. Nunca se debe comprobar la existencia de un error - específico por el mensaje textual, sino por el código numérico.</para> + Esta función devuelve el mensaje de error explicando el + número de error <parameter>errno</parameter>. Aunque los + números errno de LDAP están estandarizados, + bibliotecas diferentes devuelven mensajes de error textuales + diferentes o incluso localizados. Nunca revise el texto de un + mensaje de error específico, siempre use un número + de error para efectos de chequeo. + </para> <para> - Var también <function>ldap_errno</function> y + Vea también <function>ldap_errno</function> y <function>ldap_error</function>. - - <example> - <title>Enumerando todos los mensajes de error LDAP</title> - <programlisting role="php"> + <example> + <title>Enumeración de todos los mensajes de error + LDAP</title> +<programlisting role="php"> <![CDATA[ <?php - for($i=0; $i<100; $i++) { - printf("Error $i: %s<br />\n", ldap_str2err($i)); + for ($i=0; $i<100; $i++) { + printf("Error $i: %s<br />\n", ldap_err2str($i)); } ?> ]]> - </programlisting> - </example> - </para> +</programlisting> + </example></para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/math/functions/hypot.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/math/functions/hypot.xml diff -u phpdoc-es/reference/math/functions/hypot.xml:1.2 phpdoc-es/reference/math/functions/hypot.xml:1.3 --- phpdoc-es/reference/math/functions/hypot.xml:1.2 Mon Dec 15 23:43:31 2003 +++ phpdoc-es/reference/math/functions/hypot.xml Fri Jun 11 04:56:04 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.3 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.4 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/math.xml, last change in rev 1.72 --> <refentry id='function.hypot'> <refnamediv> @@ -16,7 +16,6 @@ <methodparam><type>float</type><parameter>num1</parameter></methodparam> <methodparam><type>float</type><parameter>num2</parameter></methodparam> </methodsynopsis> - &warn.experimental.func; <para> &warn.undocumented.func; </para> http://cvs.php.net/diff.php/phpdoc-es/reference/ncurses/constants.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/ncurses/constants.xml diff -u phpdoc-es/reference/ncurses/constants.xml:1.1 phpdoc-es/reference/ncurses/constants.xml:1.2 --- phpdoc-es/reference/ncurses/constants.xml:1.1 Tue Jan 13 23:18:03 2004 +++ phpdoc-es/reference/ncurses/constants.xml Fri Jun 11 04:56:04 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 --> <section id="ncurses.constants"> &reftitle.constants; &extension.constants; http://cvs.php.net/diff.php/phpdoc-es/reference/oci8/reference.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-es/reference/oci8/reference.xml diff -u phpdoc-es/reference/oci8/reference.xml:1.3 phpdoc-es/reference/oci8/reference.xml:1.4 --- phpdoc-es/reference/oci8/reference.xml:1.3 Fri Aug 16 16:47:15 2002 +++ phpdoc-es/reference/oci8/reference.xml Fri Jun 11 04:56:04 2004 @@ -1,25 +1,214 @@ <?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.13 Maintainer: lboshell Status: ready --> <reference id="ref.oci8"> <title>Funciones de Oracle 8</title> <titleabbrev>OCI8</titleabbrev> + <partintro> - <simpara> - Estas funciones permiten acceder a bases de datos Oracle8 y Oracle7. Estas - usan la Oracle8 Call-Interface (OCI8). Necesitará las librerías clientes de Oracle8 - para usar esta extensión. - </simpara> - <simpara> - Esta extensión es más flexible que las estándar de Oracle. - Soporta el enlace de variables locales y globales de PHP con - placeholders de Oracle, tiene soporte completo para LOB, FILE y ROWID - y le permiten usar las variables definidas por el usuario. - </simpara> + <section id="oci8.intro"> + &reftitle.intro; + <para> + Estas funciones le permiten acceder a bases de datos Oracle9, + Oracle8 y Oracle7. Usan la Interfaz de Llamadas Oracle (OCI por + sus siglas en Inglés). + </para> + <para> + Esta extensión es más flexible que la + extensión <link linkend="ref.oracle">antigua de + Oracle</link>. Ésta soporta la vinculación de + variables PHP globales y locales con recipientes Oracle, tiene + soporte completo LOB, FILE y ROWID, y le permite usar variables + de definición entregadas por el usuario. Es recomendable + usar esta extensión en lugar de la extensión <link + linkend="ref.oracle">antigua de Oracle</link> siempre que sea + posible. + </para> + </section> + + <section id="oci8.requirements"> + &reftitle.required; + <para> + Es necesario contar con las bibliotecas de cliente Oracle para + usar esta extensión. Los usuarios de Windows necesitan por + lo menos la versión 8.1 de Oracle para usar + <filename>php_oci8.dll</filename>. + </para> + <para> + Antes de usar esta extensión, asegúrese de haber + configurado apropiadamente sus variables de entorno Oracle para + que correspondan con el usuario de Oracle, así como su + usuario del demonio web. Las variables que necesita definir son + las siguientes: + <itemizedlist> + <listitem> + <simpara> + ORACLE_HOME + </simpara> + </listitem> + <listitem> + <simpara> + ORACLE_SID + </simpara> + </listitem> + <listitem> + <simpara> + LD_PRELOAD + </simpara> + </listitem> + <listitem> + <simpara> + LD_LIBRARY_PATH + </simpara> + </listitem> + <listitem> + <simpara> + NLS_LANG + </simpara> + </listitem> + <listitem> + <simpara> + ORA_NLS33 + </simpara> + </listitem> + </itemizedlist> + </para> + <para> + Después de definir las variables de entorno para su usuario + de servidor web, asegúrese también de agregar al + usuario del servidor web (nobody, www) al grupo oracle. + </para> + <note> + <title>Si su servidor web no arranca, o falla al arrancar</title> + <para> + Verifique que Apache esté enlazado con la biblioteca + pthread: + </para> + <para> + <informalexample> + <screen> +<![CDATA[ +# ldd /www/apache/bin/httpd + libpthread.so.0 => /lib/libpthread.so.0 (0x4001c000) + libm.so.6 => /lib/libm.so.6 (0x4002f000) + libcrypt.so.1 => /lib/libcrypt.so.1 (0x4004c000) + libdl.so.2 => /lib/libdl.so.2 (0x4007a000) + libc.so.6 => /lib/libc.so.6 (0x4007e000) + /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) +]]> + </screen> + </informalexample> + </para> + <para> + Si libpthread no se encuentra en la lista, necesita re-instalar + Apache: + </para> + <para> + <informalexample> + <screen> +<![CDATA[ +# cd /usr/src/apache_1.3.xx +# make clean +# LIBS=-lpthread ./config.status +# make +# make install +]]> + </screen> + </informalexample> + </para> + <para> + Por favor note que en algunos sistemas, como UnixWare, se trata + de libthread en lugar de libpthread. PHP y Apache deben + configurarse con EXTRA_LIBS=-lthread. + </para> + </note> + </section> + + &reference.oci8.configure; + + <section id="oci8.configuration"> + &reftitle.runtime; + &no.config; + </section> + + <section id="oci8.resources"> + &reftitle.resources; + <para> + </para> + </section> + + &reference.oci8.constants; + + <section id="oci8.examples"> + &reftitle.examples; + <para> + <example> + <title>Consejos OCI</title> + <programlisting role="php"> +<![CDATA[ +<?php +// por sergo arroba bacup punto ru + +// Use la opcion OCI_DEFAULT en el comando de ejecucion para aplazar +// la ejecucion +OCIExecute($sentencia, OCI_DEFAULT); + +// para recuperar datos use (despues de fetch): + +$resultado = OCIResult($sentencia, $n); +if (is_object($result)) $resultado = $resultado->load(); + +// Para una sentencia INSERT o UPDATE use: + +$sql = "insert into tabla (campo1, campo2) values (campo1 = 'valor', + campo2 = empty_clob()) returning campo2 into :campo2"; +OCIParse($con, $sql); +$clob = OCINewDescriptor($con, OCI_D_LOB); +OCIBindByName($sentencia, ":campo2", &$clob, -1, OCI_B_CLOB); +OCIExecute($sentencia, OCI_DEFAULT); +$clob->save("cualquier texto"); +OCICommit($con); + +?> +]]> + </programlisting> + </example> + </para> + <para> + Es posible acceder fácilmente a procedimientos almacenados + en la misma forma en que lo haría desde la línea de + comandos. + <example> + <title>Uso de Procedimientos Almacenados</title> + <programlisting role="php"> +<![CDATA[ +<?php +// por webmaster arroba remoterealty punto com +$sth = OCIParse($dbh, "begin proc_nueva_dir( :id_direccion, '$nombre', + '$apellido', '$companyia', '$dir1', '$dir2', '$ciudad', '$estado', + '$cod_postal', '$pais', :cod_error );end;"); + +// Esto llama al procedimiento almacenado proc_nueva_dir, en donde +// :id_direccion es una variable de entrada/salida y :cod_error es una +// variable de salida. +// Entonces crea la vinculacion: + + OCIBindByName($sth, ":id_direccion", $id_direccion, 10); + OCIBindByName($sth, ":cod_error", $cod_error, 10); + OCIExecute($sth); + +?> +]]> + </programlisting> + </example> + </para> + </section> + </partintro> - + &reference.oci8.functions; </reference> - <!-- Keep this comment at the end of the file Local variables: mode: sgml @@ -36,5 +225,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/sybase/functions/sybase-affected-rows.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/sybase/functions/sybase-affected-rows.xml diff -u phpdoc-es/reference/sybase/functions/sybase-affected-rows.xml:1.1 phpdoc-es/reference/sybase/functions/sybase-affected-rows.xml:1.2 --- phpdoc-es/reference/sybase/functions/sybase-affected-rows.xml:1.1 Sun Apr 14 20:19:46 2002 +++ phpdoc-es/reference/sybase/functions/sybase-affected-rows.xml Fri Jun 11 04:56:04 2004 @@ -1,36 +1,62 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/sybase.xml, last change in rev 1.1 --> -<!-- last change to 'sybase-affected-rows' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.7 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/sybase.xml, last change in rev 1.2 --> <refentry id="function.sybase-affected-rows"> <refnamediv> <refname>sybase_affected_rows</refname> - <refpurpose>obtiene el número de filas afectadas por la última consulta</refpurpose> + <refpurpose>Obtiene el número de filas afectadas en la + última consulta</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> - <type>int</type><methodname>sybase_affected_rows</methodname> - <methodparam choice="opt"><type>int</type><parameter>link_identifier - </parameter></methodparam> + <type>int</type><methodname>sybase_affected_rows</methodname> + <methodparam choice="opt"><type>resource</type><parameter>id_enlace</parameter></methodparam> </methodsynopsis> <para> - Devuelve: El número de filas afectadas por la última consulta.</para> + <function>sybase_affected_rows</function> devuelve el + número de filas afectadas por la última consulta + INSERT, UPDATE o DELETE en el servidor asociado con el + identificador de enlace dado. Si no se especifica el + identificador de enlace, se asume el último enlace + abierto. + </para> <para> - <function>sybase_affected_rows</function> devuelve el número de - filas afectadas por la última acción e tipo INSERT, UPDATE o DELETE - en el servidor asociado al identificador de enlace especificado. Si - no se especifica un identificador de enlace, se asume el último enlace - abierto.</para> + <example> + <title>Consulta-Delete</title> + <programlisting role="php"> +<![CDATA[ +<?php + /* conectarse con la base de datos */ + sybase_connect('SYBASE', '', '') or + die("No pudo conectarse"); + sybase_select_db("bd"); + + sybase_query("DELETE FROM alguna_tabla WHERE id < 10"); + printf("Registros eliminados: %d\n", sybase_affected_rows()); +?> +]]> + </programlisting> + <para> + El anterior ejemplo produciría la siguiente salida: + </para> + <screen> +<![CDATA[ + Registros eliminados: 10 +]]> + </screen> + </example> + </para> <para> - Esta instrucción no es efectiva para sentencias de tipo SELECT, sólo - en sentencias que modifican registros. Para obtener el número de filas - afectadas por un SELECT, use <function>sybase_num_rows</function>. - <note> - <para> - Esta función sólo esta disponible usando el interface de la librería - CT, y no con la librería DB. - </para> - </note></para> + Este comando no es efectivo para sentencias SELECT, + únicamente en sentencias que modifican registros. Para + recuperar el número de filas devueltas desde un SELECT, + use <function>sybase_num_rows</function>. &sybase.ct.only; + </para> + <para> + Vea también <function>sybase_num_rows</function>. + </para> </refsect1> </refentry> http://cvs.php.net/co.php/phpdoc-es/reference/domxml/functions/DomDocument-create-element.xml?r=1.1&p=1 Index: phpdoc-es/reference/domxml/functions/DomDocument-create-element.xml +++ phpdoc-es/reference/domxml/functions/DomDocument-create-element.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.7 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 --> <refentry id="function.domdocument-create-element"> <refnamediv> <refname>DomDocument->create_element</refname> <refpurpose>Crear un nuevo nodo de tipo elemento</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>object</type><methodname>DomDocument->create_element</methodname> <methodparam><type>string</type><parameter>nombre</parameter></methodparam> </methodsynopsis> <para> Esta función devuelve una nueva instancia de la clase <classname>DomElement</classname>. El nombre de la etiqueta del elemento es el valor del parámetro pasado. &node.inserted; </para> <para> El valor de retorno es &false; si ocurre un error. </para> <para> Vea también <function>domdocument_create_element_ns</function>, <function>domnode_append_child</function>, <function>domdocument_create_text</function>, <function>domdocument_create_comment</function>, <function>domdocument_create_attribute</function>, <function>domdocument_create_processing_instruction</function>, <function>domdocument_create_entity_reference</function>, y <function>domnode_insert_before</function>. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/phpdoc-es/reference/domxml/functions/DomDocument-create-entity-reference.xml?r=1.1&p=1 Index: phpdoc-es/reference/domxml/functions/DomDocument-create-entity-reference.xml +++ phpdoc-es/reference/domxml/functions/DomDocument-create-entity-reference.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.6 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 --> <refentry id="function.domdocument-create-entity-reference"> <refnamediv> <refname>DomDocument->create_entity_reference</refname> <refpurpose> </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>object</type><methodname>DomDocument->create_entity_reference</methodname> <methodparam><type>string</type><parameter>contenido</parameter></methodparam> </methodsynopsis> <para> Esta función devuelve una nueva instancia de la clase <classname>DomEntityReference</classname>. El contenido de la referencia a entidad es el valor del parámetro pasado. &node.inserted; </para> <para> El valor de retorno es &false; si ocurre un error. </para> <para> Vea también <function>domnode_append_child</function>, <function>domdocument_create_element</function>, <function>domdocument_create_text</function>, <function>domdocument_create_cdata_section</function>, <function>domdocument_create_processing_instruction</function>, <function>domdocument_create_attribute</function>, y <function>domnode_insert_before</function>. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/phpdoc-es/reference/domxml/functions/DomDocument-create-processing-instruction.xml?r=1.1&p=1 Index: phpdoc-es/reference/domxml/functions/DomDocument-create-processing-instruction.xml +++ phpdoc-es/reference/domxml/functions/DomDocument-create-processing-instruction.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.6 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 --> <refentry id="function.domdocument-create-processing-instruction"> <refnamediv> <refname>DomDocument->create_processing_instruction</refname> <refpurpose>Crea un nuevo nodo PI</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>string</type><methodname>DomDocument->create_processing_instruction</methodname> <methodparam><type>string</type><parameter>contenido</parameter></methodparam> </methodsynopsis> <para> Esta función devuelve una nueva instancia de la clase <classname>DomCData</classname>. El contenido de la instrucción de procesamiento es el valor del parámetro pasado. &node.inserted; </para> <para> El valor de retorno es &false; si ocurre un error. </para> <para> Vea también <function>domnode_append_child</function>, <function>domdocument_create_element</function>, <function>domdocument_create_text</function>, <function>domdocument_create_cdata_section</function>, <function>domdocument_create_attribute</function>, <function>domdocument_create_entity_reference</function>, y <function>domnode_insert_before</function>. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/phpdoc-es/reference/domxml/functions/DomDocument-create-text-node.xml?r=1.1&p=1 Index: phpdoc-es/reference/domxml/functions/DomDocument-create-text-node.xml +++ phpdoc-es/reference/domxml/functions/DomDocument-create-text-node.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.6 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 --> <refentry id="function.domdocument-create-text-node"> <refnamediv> <refname>DomDocument->create_text_node</refname> <refpurpose>Crear un nuevo nodo de texto</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>object</type><methodname>DomDocument->create_text_node</methodname> <methodparam><type>string</type><parameter>contenido</parameter></methodparam> </methodsynopsis> <para> Esta función devuelve una nueva instancia de la clase <classname>DomText</classname>. El contenido del texto es el valor del parámetro pasado. &node.inserted; </para> <para> El valor de retorno es &false; si ocurre un error. </para> <para> Vea también <function>domnode_append_child</function>, <function>domdocument_create_element</function>, <function>domdocument_create_comment</function>, <function>domdocument_create_text</function>, <function>domdocument_create_attribute</function>, <function>domdocument_create_processing_instruction</function>, <function>domdocument_create_entity_reference</function>, y <function>domnode_insert_before</function>. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/phpdoc-es/reference/domxml/functions/DomDocument-doctype.xml?r=1.1&p=1 Index: phpdoc-es/reference/domxml/functions/DomDocument-doctype.xml +++ phpdoc-es/reference/domxml/functions/DomDocument-doctype.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 --> <refentry id="function.domdocument-doctype"> <refnamediv> <refname>DomDocument->doctype</refname> <refpurpose> Devuelve el tipo de documento </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>object</type><methodname>DomDocument->doctype</methodname> <void/> </methodsynopsis> <para> Esta función devuelve un objeto de la clase <classname>DomDocumentType</classname>. En versiones de PHP anteriores a 4.3, esta era la clase <classname>Dtd</classname>, pero el estándar DOM no conoce tal clase. </para> <para> Vea también los métodos de la clase <classname>DomDocumentType</classname>. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/phpdoc-es/reference/domxml/functions/DomDocument-document-element.xml?r=1.1&p=1 Index: phpdoc-es/reference/domxml/functions/DomDocument-document-element.xml +++ phpdoc-es/reference/domxml/functions/DomDocument-document-element.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.4 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/domxml.xml, last change in rev 1.6 --> <refentry id="function.domdocument-document-element"> <refnamediv> <refname>DomDocument->document_element</refname> <refpurpose> Devuelve el nodo del elemento raíz </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>object</type><methodname>DomDocument->document_element</methodname> <void/> </methodsynopsis> <para> Esta función devuelve el nodo de elemento raíz de un documento. </para> <para> El siguiente ejemplo devuelve tan solo el elemento con nombre CHAPTER y lo imprime. El otro nodo -- el comentario -- no es devuelto. <example> <title>Recuperar el elemento raíz</title> <programlisting role="php"> <![CDATA[ <?php include("ejemplo.inc"); if (!$dom = domxml_open_mem($cadena_xml)) { echo "Ha ocurrido un error al procesar el documento\n"; exit; } $raiz = $dom->document_element(); print_r($raiz); ?> ]]> </programlisting> </example> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/phpdoc-es/reference/domxml/functions/DomDocument-dump-file.xml?r=1.1&p=1 Index: phpdoc-es/reference/domxml/functions/DomDocument-dump-file.xml +++ phpdoc-es/reference/domxml/functions/DomDocument-dump-file.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.5 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/domxml.xml, last change in rev 1.6 --> <refentry id="function.domdocument-dump-file"> <refnamediv> <refname>DomDocument->dump_file</refname> <refpurpose> Vuelca el árbol XML interno de vuelta a un archivo </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>string</type><methodname>DomDocument->dump_file</methodname> <methodparam><type>string</type><parameter>nombre_archivo</parameter></methodparam> <methodparam choice="opt"><type>bool</type><parameter>modo_compresion</parameter></methodparam> <methodparam choice="opt"><type>bool</type><parameter>formato</parameter></methodparam> </methodsynopsis> <para> Crea un documento XML desde la representación dom. Esta función es llamada por lo general después de construir un nuevo documento dom desde ceros como en el ejemplo a continuación. El <parameter>formato</parameter> especifica si la salida debe tener un formato elegante, o no. El primer parámetro especifica el nombre del archivo y el segundo parámetro, si debe comprimirse o no. </para> <para> <example> <title>Creación de una cabecera de un documento HTML simple</title> <programlisting role="php"> <![CDATA[ <?php $doc = domxml_new_doc("1.0"); $raiz = $doc->create_element("HTML"); $raiz = $doc->append_child($raiz); $cabecera = $doc->create_element("HEAD"); $cabecera = $raiz->append_child($cabecera); $titulo = $doc->create_element("TITLE"); $titulo = $cabecera->append_child($titulo); $texto = $doc->create_text_node("Este es el título"); $texto = $titulo->append_child($texto); $doc->dump_file("/tmp/prueba.xml", false, true); ?> ]]> </programlisting> </example> </para> <para> Vea también <function>domdocument_dump_mem</function>, y <function>domdocument_html_dump_mem</function>. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/phpdoc-es/reference/domxml/functions/DomDocument-dump-mem.xml?r=1.1&p=1 Index: phpdoc-es/reference/domxml/functions/DomDocument-dump-mem.xml +++ phpdoc-es/reference/domxml/functions/DomDocument-dump-mem.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.6 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/domxml.xml, last change in rev 1.6 --> <refentry id="function.domdocument-dump-mem"> <refnamediv> <refname>DomDocument->dump_mem</refname> <refpurpose> Vuelca el árbol XML interno de vuelta a una cadena </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>string</type><methodname>DomDocument->dump_mem</methodname> <methodparam choice="opt"><type>bool</type><parameter>formato</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>codificacion</parameter></methodparam> </methodsynopsis> &warn.experimental.func; <para> Crea un documento XML desde la representación dom. Esta función es llamada por lo general después de construir un nuevo documento dom desde ceros como en el ejemplo a continuación. El <parameter>formato</parameter> especifica si la salida debe tener un formato elegante, o no. </para> <para> <example> <title>Creación de una cabecera de un documento HTML simple</title> <programlisting role="php"> <![CDATA[ <?php $doc = domxml_new_doc("1.0"); $raiz = $doc->create_element("HTML"); $raiz = $doc->append_child($raiz); $cabecera = $doc->create_element("HEAD"); $cabecera = $raiz->append_child($cabecera); $titulo = $doc->create_element("TITLE"); $titulo = $cabecera->append_child($titulo); $texto = $doc->create_text_node("This is the title"); $texto = $titulo->append_child($texto); echo "<PRE>"; echo htmlentities($doc->dump_mem(true)); echo "</PRE>"; ?> ]]> </programlisting> </example> </para> <note> <para> El primer parámetro fue agregado en PHP 4.3.0. </para> </note> <para> Vea también <function>domdocument_dump_file</function>, y <function>domdocument_html_dump_mem</function>. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/phpdoc-es/reference/domxml/functions/DomDocument-get-element-by-id.xml?r=1.1&p=1 Index: phpdoc-es/reference/domxml/functions/DomDocument-get-element-by-id.xml +++ phpdoc-es/reference/domxml/functions/DomDocument-get-element-by-id.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.5 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 --> <refentry id="function.domdocument-get-element-by-id"> <refnamediv> <refname>DomDocument->get_element_by_id</refname> <refpurpose> Busca un elemento con cierto id </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>object</type><methodname>DomDocument->get_element_by_id</methodname> <methodparam><type>string</type><parameter>id</parameter></methodparam> </methodsynopsis> <para> Esta función es similar a <function>domdocument_get_elements_by_tagname</function>, pero busca un elemento con un id dado. De acuerdo al estándar DOM, esto requiere un DTD que defina el atributo ID como de tipo ID, aunque la implementación actual simplemente realiza una búsqueda xpath por "//*[@ID = '%s']". Esto no es fiel al estándar DOM, el cual requiere que se devuelva un valor nulo si no se conoce cuál atributo es de tipo id. Es probable que este comportamiento sea corregido, de modo que no depende del modo que opera ahora. </para> <para> Vea también <function>domdocument_get_elements_by_tagname</function> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/phpdoc-es/reference/domxml/functions/DomDocument-get-elements-by-tagname.xml?r=1.1&p=1 Index: phpdoc-es/reference/domxml/functions/DomDocument-get-elements-by-tagname.xml +++ phpdoc-es/reference/domxml/functions/DomDocument-get-elements-by-tagname.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.4 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 --> <refentry id="function.domdocument-get-elements-by-tagname"> <refnamediv> <refname>DomDocument->get_elements_by_tagname</refname> <refpurpose> </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>array</type><methodname>DomDocument->get_elements_by_tagname</methodname> <methodparam><type>string</type><parameter>nombre</parameter></methodparam> </methodsynopsis> <para> </para> <para> Vea también <function>domdocument_add_root</function> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/phpdoc-es/reference/domxml/functions/DomDocument-html-dump-mem.xml?r=1.1&p=1 Index: phpdoc-es/reference/domxml/functions/DomDocument-html-dump-mem.xml +++ phpdoc-es/reference/domxml/functions/DomDocument-html-dump-mem.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.5 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/domxml.xml, last change in rev 1.6 --> <refentry id="function.domdocument-html-dump-mem"> <refnamediv> <refname>DomDocument->html_dump_mem</refname> <refpurpose> Vuelca el árbol XML interno de vuelta a una cadena como HTML </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>string</type><methodname>DomDocument->html_dump_mem</methodname> <void/> </methodsynopsis> <para> Crea un documento HTML para la representación dom. Por lo general, esta función es llamada después de construier un nuevo documento dom desde ceros, como en el siguiente ejemplo. </para> <para> <example> <title>Creación de una cabecera de documento HTML simple</title> <programlisting role="php"> <![CDATA[ <?php $doc = domxml_new_doc("1.0"); $raiz = $doc->create_element("HTML"); $raiz = $doc->append_child($raiz); $cabecera = $doc->create_element("HEAD"); $cabecera = $raiz->append_child($cabecera); $titulo = $doc->create_element("TITLE"); $titulo = $cabecera->append_child($titulo); $texto = $doc->create_text_node("This is the title"); $texto = $titulo->append_child($texto); echo "<PRE>"; echo htmlentities($doc->html_dump_mem()); echo "</PRE>"; ?> ]]> </programlisting> </example> </para> <para> Vea también <function>domdocument_dump_file</function>, y <function>domdocument_html_dump_mem</function>. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/phpdoc-es/reference/domxml/functions/DomDocument-xinclude.xml?r=1.1&p=1 Index: phpdoc-es/reference/domxml/functions/DomDocument-xinclude.xml +++ phpdoc-es/reference/domxml/functions/DomDocument-xinclude.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: lboshell Status: ready --> <refentry id="function.domdocument-xinclude"> <refnamediv> <refname>DomDocument->xinclude</refname> <refpurpose> Reemplaza sentencias XInclude en un Objeto DomDocument. </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>int</type><methodname>DomDocument->xinclude</methodname> <void/> </methodsynopsis> &warn.experimental.func; &warn.undocumented.func; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/phpdoc-es/reference/domxml/functions/DomDocumentType-entities.xml?r=1.1&p=1 Index: phpdoc-es/reference/domxml/functions/DomDocumentType-entities.xml +++ phpdoc-es/reference/domxml/functions/DomDocumentType-entities.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 --> <refentry id='function.domdocumenttype-entities'> <refnamediv> <refname>DomDocumentType->entities</refname> <refpurpose> Devuelve una lista de entidades </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>array</type><methodname>DomDocumentType->entities</methodname> <void/> </methodsynopsis> <para> &warn.undocumented.func; </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->