cvs: phpdoc-es /faq installation.xml /reference/domxml/functions DomNode-attributes.xml DomNode-child-nodes.xml DomNode-clone-node.xml
DomNode-dump-node.xml DomNode-first-child.xml DomNode-get-content.xml DomNode-has-attributes.xml DomNode-has-child-nodes.xml DomNode-insert-before.xml
DomNode-is-blank-node.xml DomNode-last-child.xml DomNode-next-sibling.xml DomNode-node-name.xml DomNode-node-type.xml DomNode-node-value.xml
/reference/filesystem/functions fpassthru.xml fputs.xml fread.xml /reference/stream/functions stream-context-create.xml stream-filter-append.xml
stream-filter-prepend.xml stream-filter-register.xml stream-get-contents.xml stream-get-filters.xml stream-get-line.xml stream-get-transports.xml
stream-get-wrappers.xml stream-select.xml stream-set-timeout.xml stream-set-write-buffer.xml stream-socket-client.xml stream-socket-get-name.xml
stream-socket-server.xml
| From: | Leonardo Boshell | Date: | Fri, 18 Jun 2004 03:29:29 +0000 |
| Subject: | cvs: phpdoc-es /faq installation.xml /reference/domxml/functions DomNode-attributes.xml DomNode-child-nodes.xml DomNode-clone-node.xml DomNode-dump-node.xml DomNode-first-child.xml DomNode-get-content.xml DomNode-has-attributes.xml DomNode-has-child-nodes.xml DomNode-insert-before.xml DomNode-is-blank-node.xml DomNode-last-child.xml DomNode-next-sibling.xml DomNode-node-name.xml DomNode-node-type.xml DomNode-node-value.xml /reference/filesystem/functions fpassthru.xml fputs.xml fread.xml /reference/stream/functions stream-context-create.xml stream-filter-append.xml stream-filter-prepend.xml stream-filter-register.xml stream-get-contents.xml stream-get-filters.xml stream-get-line.xml stream-get-transports.xml stream-get-wrappers.xml stream-select.xml stream-set-timeout.xml stream-set-write-buffer.xml stream-socket-client.xml stream-socket-get-name.xml stream-socket-server.xml |
||
| Groups: | php.doc.es | ||
| Request: | Send a blank email to doc-es+get-617@lists.php.net to get a copy of this message | ||
lboshell Thu Jun 17 23:29:29 2004 EDT
Added files:
/phpdoc-es/reference/domxml/functions DomNode-attributes.xml
DomNode-child-nodes.xml
DomNode-clone-node.xml
DomNode-dump-node.xml
DomNode-first-child.xml
DomNode-get-content.xml
DomNode-has-attributes.xml
DomNode-has-child-nodes.xml
DomNode-insert-before.xml
DomNode-is-blank-node.xml
DomNode-last-child.xml
DomNode-next-sibling.xml
DomNode-node-name.xml
DomNode-node-type.xml
DomNode-node-value.xml
Modified files:
/phpdoc-es/faq installation.xml
/phpdoc-es/reference/filesystem/functions fpassthru.xml fputs.xml
fread.xml
/phpdoc-es/reference/stream/functions stream-context-create.xml
stream-filter-append.xml
stream-filter-prepend.xml
stream-filter-register.xml
stream-get-contents.xml
stream-get-filters.xml
stream-get-line.xml
stream-get-transports.xml
stream-get-wrappers.xml
stream-select.xml
stream-set-timeout.xml
stream-set-write-buffer.xml
stream-socket-client.xml
stream-socket-get-name.xml
stream-socket-server.xml
Log:
- Actualizaciones y correcciones
- Nuevos archivos de domxml
http://cvs.php.net/diff.php/phpdoc-es/faq/installation.xml?r1=1.7&r2=1.8&ty=u Index: phpdoc-es/faq/installation.xml diff -u phpdoc-es/faq/installation.xml:1.7 phpdoc-es/faq/installation.xml:1.8 --- phpdoc-es/faq/installation.xml:1.7 Tue Jun 1 23:38:36 2004 +++ phpdoc-es/faq/installation.xml Thu Jun 17 23:29:27 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> -<!-- EN-Revision: 1.28 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.8 $ --> +<!-- EN-Revision: 1.30 Maintainer: lboshell Status: ready --> <chapter id="faq.installation"> <title>Instalación</title> <titleabbrev>Instalación</titleabbrev> @@ -22,6 +22,111 @@ </para> <qandaset> + <qandaentry id="faq.installation.apache2"> + <question> + <para> + ¿Porqué no debo usar Apache 2 en un entorno en + producción? + </para> + </question> + <answer> + <para> + La siguiente respuesta se encuentra basada en este extracto + modificado de un correo por Rasmus Lerdorf. + </para> + <para> + Apache 2 es una versión escrita desde ceros y una + completa modificación de arquitectura a partir de Apache + 1. No es como ir de PHP 3 a PHP4, o de PHP 4 a PHP 5. Hay + bastante código que es común, y ciertamente la + arquitectura base de PHP no ha cambiado a través de los + años. Asi que comparar Apache 1 y Apache 2 contra PHP 4 y + PHP 5 no tiene sentido. La arquitectura ha sido probada a lo + largo de los años y el código, aunque es un poco + inmanejable en algunas partes, es una entidad conocida. PHP fue + diseñado desde los primeros días contra aquella + arquitectura básica de Apache 1 y funciona extremadamente + bien cuando se usa con éste. + </para> + <para> + La característica más importante que atrae a la + gente a Apache 2 es el uso de hilos. En Windows, en donde la + mayoría de bibliotecas básicos son, y deben ser, + seguras con hilos, Apache 2 realmente tiene sentido y + sería bueno resolver los pequeños problemas en esa + plataforma. Sin embargo, en UNIX existen bastante bibliotecas + básicas en donde no se conoce su seguridad con hilos. Y + no se trata de extensiones PHP, se trata de bibliotecas de + terceros por debajo de los cientos de extensiones de PHP. Es + realmente difícil determinar si cierta biblioteca externa + es segura con hilos. Existen bastantes variables involucradas, + incluyendo el SO, la versión del SO, la biblioteca libc, + la versión de esa biblioteca e incluso, en algunas + plataformas, las banderas de compilación usadas para + generar las bibliotecas. Y para hacerlo aun más + divertido, rastrear un problema de seguridad con hilos se + encuentra bastante cerca a lo imposible. Cientos de personas + bien pueden declarar que Apache+PHP+cualquier/extensión + funciona perfectamente para ellos, pero quizás ellos + sólo reciben un millón de peticiones al + día. Luego llega otro usuario quien recibe 100 millones + de peticiones al día y usa una avanzada máquina + con doble-procesador y todo se arruina ya que de repente ahora + la oportunidad para alguna pequeña condición de + carrera se ha hecho mucho mayor debido a las velocidades + más rápidas de cpu, el segundo cpu y la mayor + frecuencia de las peticiones. Y el reporte del fallo que + recibimos de este usuario será algo similar a: + </para> + <blockquote> + <para> + A veces no funciona. La mayoría de veces funciona bien, + pero de repente de vez en cuando no. El error es diferente + cada vez y no tengo idea de cómo reproducirlo, + ¡pero arréglenlo de inmediato!!! + </para> + </blockquote> + + <para>¿Qué podemos hacer al respecto?</para> + <para> + Hay un número de razones técnicas (que pueden + resolverse) por las que Rasmus no piensa que Apache2+PHP sea una + buena idea en un entorno en producción, pero + dejándolas de lado, realmente todo converge a un simple + concepto: + </para> + <para> + PHP es pegamento. Es el pegamento usado para construir + interesantes aplicaciones web, uniendo docenas de bibliotecas + externas y haciéndolas parecer una entidad coherente a + través de una interfaz de lenguaje intuitiva y + fácil de aprender. La flexibilidad y poder de PHP depende + de la estabilidad y robustez de la plataforma + subyacente. Necesita de un SO que funcione, un servidor web que + funcione y unas bibliotecas externas que funcionen para unirlo + todo. Cuando uno cualquiera de estos elementos deja de trabajar, + PHP necesita identificar los problemas y solucionarlos + rápidamente. Al hacer más complejo el marco de + referencia base, no disponiendo de hilos de ejecución + completamente separados, segmentos de memoria completamente + separados y una caja de arena segura para que cada + petición trabaje, se introduce una base débil al + sistema de PHP. + </para> + <para> + Usar la versión mpm anterior a la bifurcación + ocurrida en Apache 2 para evitar el uso de hilos es posible, y + sí, también funciona usar un mecanismo + independiente fastcgi para evitar los hilos, pero entonces se + estarían evitando características que definen al + servidor web. En este punto de desarrollo, Rasmus aun afirma que + se está mejor siguiendo con Apache 1 para servir + páginas PHP, con la nota de precaución de que + Apache 1 opera bastante mal en Windows. + </para> + </answer> + </qandaentry> + <qandaentry id="faq.installation.phpini"> <question> <para> http://cvs.php.net/diff.php/phpdoc-es/reference/filesystem/functions/fpassthru.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/filesystem/functions/fpassthru.xml diff -u phpdoc-es/reference/filesystem/functions/fpassthru.xml:1.1 phpdoc-es/reference/filesystem/functions/fpassthru.xml:1.2 --- phpdoc-es/reference/filesystem/functions/fpassthru.xml:1.1 Sun Apr 14 20:13:59 2002 +++ phpdoc-es/reference/filesystem/functions/fpassthru.xml Thu Jun 17 23:29:28 2004 @@ -1,42 +1,85 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/filesystem.xml, last change in rev 1.1 --> -<!-- last change to 'fpassthru' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.8 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 --> <refentry id="function.fpassthru"> <refnamediv> <refname>fpassthru</refname> - <refpurpose> - Saca todos los datos restantes del fichero apuntado - </refpurpose> + <refpurpose>Imprime todos los datos restantes en un apuntador de + archivo</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> - <type>int</type><methodname>fpassthru</methodname> - <methodparam><type>int</type><parameter>fp</parameter></methodparam> + <type>int</type><methodname>fpassthru</methodname> + <methodparam><type>resource</type><parameter>gestor</parameter></methodparam> </methodsynopsis> <simpara> - Lee hasta el EOF del fichero apuntado y escribe los resultados a - la salida estándar (stdout). + Lee hasta EOF en el apuntador de archivo dado a partir de la + posición actual y escribe los resultados en el + búfer de salida. </simpara> <simpara> Si ocurre un error, <function>fpassthru</function> devuelve - &false;. + &false;. De lo contrario, <function>fpassthru</function> devuelve + el número de caracteres leídos desde + <parameter>gestor</parameter> y pasados a la salida. </simpara> + &fs.validfp.all; <simpara> - El apuntador al fichero debe ser válido, y debe apuntar a un - fichero abierto con éxito por <function>fopen</function>, - <function>popen</function>, o <function>fsockopen</function>. - El fichero se cierra cuando <function>fpassthru</function> termina - de leerlo (dejando <parameter>fp</parameter> sin ninguna utilidad). + Puede que necesite llamar <function>rewind</function> para + restablecer el apuntador de archivo al comienzo de éste si + ya ha escrito datos en el archivo. El archivo es cerrado cuando + <function>fpassthru</function> ha terminado de leerlo (causando + que <parameter>gestor</parameter> se vuelva inútil). </simpara> <simpara> - Si sólo quieres volcar el contenido de un fichero a stdout puedes - If you just want to dump the contents of a file to stdout you may - usar la función <function>readfile</function>, la cual te libra - de la llamada a <function>fopen</function>. + Si tan sólo quiere volcar el contenido de un archivo al + búfer de salida, sin modificarlo o buscar un + desplazamiento en particular, puede que quiera usar la + función <function>readfile</function>, la cual le ahorra + la llamada a <function>fopen</function>. </simpara> + <note> + <para> + Cuando se usa <function>fpassthru</function> sobre un archivo + binario en sistemas Windows, debe asegurarse de abrir el archivo + en modo binario, agregando el valor <literal>b</literal> al modo + usado en la llamada a <function>fopen</function>. + </para> + <para> + Es recomendable usar la bandera <literal>b</literal> cuando + trate con archivos binarios, incluso si su sistema no lo + requiere, de modo que sus scripts sean más portables. + </para> + </note> + <para> + <example> + <title>Uso de <function>fpassthru</function> con archivos + binarios</title> + <programlisting role="php"> +<![CDATA[ +<?php + +// abrir el archivo en modo binario +$nombre = ".\public\dev\img\ok.png"; +$aa = fopen($nombre, 'rb'); + +// enviar las cabeceras correctas +header("Content-Type: image/png"); +header("Content-Length: " . filesize($nombre)); + +// volcar la imagen y detener el script +fpassthru($aa); +exit; + +?> +]]> + </programlisting> + </example> + </para> <simpara> - Ver también <function>readfile</function>, + Vea también <function>readfile</function>, <function>fopen</function>, <function>popen</function>, y <function>fsockopen</function> </simpara> http://cvs.php.net/diff.php/phpdoc-es/reference/filesystem/functions/fputs.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/filesystem/functions/fputs.xml diff -u phpdoc-es/reference/filesystem/functions/fputs.xml:1.1 phpdoc-es/reference/filesystem/functions/fputs.xml:1.2 --- phpdoc-es/reference/filesystem/functions/fputs.xml:1.1 Sun Apr 14 20:13:59 2002 +++ phpdoc-es/reference/filesystem/functions/fputs.xml Thu Jun 17 23:29:28 2004 @@ -1,26 +1,16 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/filesystem.xml, last change in rev 1.1 --> -<!-- last change to 'fputs' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.5 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 --> <refentry id="function.fputs"> <refnamediv> <refname>fputs</refname> - <refpurpose>Escribe en el fichero apuntado</refpurpose> + <refpurpose>Alias de <function>fwrite</function></refpurpose> </refnamediv> <refsect1> <title>Descripción</title> - <methodsynopsis> - <type>int</type><methodname>fputs</methodname> - <methodparam><type>int</type><parameter>fp</parameter></methodparam> - <methodparam><type>string</type><parameter>str</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter> - length - </parameter></methodparam> - </methodsynopsis> <para> - <function>fputs</function> es un alias de - <function>fwrite</function>, y es idéntico a él en todo. Notar - que el parámetro <parameter>length</parameter> es opcional y si - no se pone la cadena entera será escrita. + Esta función es un alias de <function>fwrite</function>. </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/filesystem/functions/fread.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/filesystem/functions/fread.xml diff -u phpdoc-es/reference/filesystem/functions/fread.xml:1.1 phpdoc-es/reference/filesystem/functions/fread.xml:1.2 --- phpdoc-es/reference/filesystem/functions/fread.xml:1.1 Sun Apr 14 20:13:59 2002 +++ phpdoc-es/reference/filesystem/functions/fread.xml Thu Jun 17 23:29:28 2004 @@ -1,40 +1,106 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/filesystem.xml, last change in rev 1.1 --> -<!-- last change to 'fread' in en/ tree in rev 1.25 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.16 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.25 --> <refentry id="function.fread"> <refnamediv> <refname>fread</refname> - <refpurpose>Lee ficheros en plan binario</refpurpose> + <refpurpose>Lectura de archivos segura con material + binario</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> - <type>string</type><methodname>fread</methodname> - <methodparam><type>int</type><parameter>fp</parameter></methodparam> - <methodparam><type>int</type><parameter>length</parameter></methodparam> + <type>string</type><methodname>fread</methodname> + <methodparam><type>resource</type><parameter>gestor</parameter></methodparam> + <methodparam><type>int</type><parameter>longitud</parameter></methodparam> </methodsynopsis> <simpara> <function>fread</function> lee hasta - <parameter>length</parameter> bytes del apuntador de fichero - referenciado por <parameter>fp</parameter>. La lectura acaba - cuando <parameter>length</parameter> bytes se han leido o se alcanza - EOF, lo que ocurra primero. + <parameter>longitud</parameter> bytes desde el apuntador de + archivo indicado por <parameter>gestor</parameter>. La lectura se + detiene cuando se han leído + <parameter>longitud</parameter> bytes, se alcanza EOF (el final + de archivo), o (en el caso de secuencias de red) cuando un + paquete se encuentra disponible, aquello que ocurra primero. </simpara> <para> <informalexample> <programlisting role="php"> -// Mete el contenido de un fichero en una cadena -$filename = "/usr/local/something.txt"; -$fd = fopen ($filename, "r"); -$contents = fread ($fd, filesize ($filename)); -fclose ($fd); +<![CDATA[ +<?php +// obtiene el contenido de un archivo en una cadena +$nombre_archivo = "/usr/local/algo.txt"; +$gestor = fopen($nombre_archivo, "r"); +$contenido = fread($gestor, filesize($nombre_archivo)); +fclose($gestor); +?> +]]> </programlisting> </informalexample> </para> + <warning> + <para> + En sistemas que diferencian entre archivos binarios y de texto + (es decir, Windows) el archivo debe ser abierto con el valor 'b' + incluido en el parámetro de modo de + <function>fopen</function>. + </para> + </warning> + <para> + <informalexample> + <programlisting role="php"> +<![CDATA[ +<?php +$nombre_archivo = "c:\\archivos\\una_imagen.gif"; +$gestor = fopen($nombre_archivo, "rb"); +$contenido = fread($gestor, filesize($nombre_archivo)); +fclose($gestor); +?> +]]> + </programlisting> + </informalexample> + </para> + + <warning> + <para> + Cuando se lee desde secuencias de red o pipes, como es el caso + cuando se leen <link linkend="features.remote-files">archivos + remotos</link> o desde <function>popen</function> y + <function>fsockopen</function>, la lectura se detendrá + después de que un paquete esté disponible. Esto + quiere decir que debe recolectar los datos en segmentos, como se + muestra en el ejemplo a continuación. + </para> + </warning> + <para> + <informalexample> + <programlisting role="php"> +<![CDATA[ +<?php +$gestor = fopen("http://www.example.com/", "rb"); +$contenido = ''; +while (!feof($gestor)) { + $contenido .= fread($gestor, 8192); +} +fclose($gestor); +?> +]]> + </programlisting> + </informalexample> + </para> + <note> + <para> + Si tan solo desea obtener el contenido de un archivo en una + cadena, use <function>file_get_contents</function>, ya que tiene + un rendimiento mucho mayor que el código anterior. + </para> + </note> <simpara> - Ver también <function>fwrite</function>, <function>fopen</function>, - <function>fsockopen</function>, <function>popen</function>, - <function>fgets</function>, <function>fgetss</function>, + Vea también <function>fwrite</function>, + <function>fopen</function>, <function>fsockopen</function>, + <function>popen</function>, <function>fgets</function>, + <function>fgetss</function>, <function>fscanf</function>, <function>file</function>, y <function>fpassthru</function>. </simpara> </refsect1> http://cvs.php.net/diff.php/phpdoc-es/reference/stream/functions/stream-context-create.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/stream/functions/stream-context-create.xml diff -u phpdoc-es/reference/stream/functions/stream-context-create.xml:1.1 phpdoc-es/reference/stream/functions/stream-context-create.xml:1.2 --- phpdoc-es/reference/stream/functions/stream-context-create.xml:1.1 Thu Dec 18 20:59:22 2003 +++ phpdoc-es/reference/stream/functions/stream-context-create.xml Thu Jun 17 23:29:28 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 --> <refentry id="function.stream-context-create"> <refnamediv> <refname>stream_context_create</refname> @@ -13,13 +13,14 @@ <methodparam><type>array</type><parameter>opciones</parameter></methodparam> </methodsynopsis> <simpara> -Crea y devuelve un contexto de secuencia con cualquier número -de opciones dadas en el conjunto <parameter>opciones</parameter>. + Crea y devuelve un contexto de secuencia con cualquier + número de opciones dadas en el conjunto + <parameter>opciones</parameter>. </simpara> <simpara> -Las <parameter>opciones</parameter> deben venir en una matriz -asociativa de matrices asociativas en el -formato <literal>$matriz['envoltura']['opcion'] = $valor</literal>. + Las <parameter>opciones</parameter> deben venir en una matriz + asociativa de matrices asociativas en el formato + <literal>$matriz['envoltura']['opcion'] = $valor</literal>. </simpara> <example> <title>Uso de <function>stream_context_create</function></title> @@ -46,10 +47,10 @@ </programlisting> </example> <simpara> - Vea También: - <function>stream_context_set_option</function>, y - el listado de envolturas soportadas con opciones de contexto - (<xref linkend="wrappers"/>) + Vea también + <function>stream_context_set_option</function>, y el listado de + envolturas soportadas con opciones de contexto (<xref + linkend="wrappers"/>). </simpara> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/stream/functions/stream-filter-append.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/stream/functions/stream-filter-append.xml diff -u phpdoc-es/reference/stream/functions/stream-filter-append.xml:1.2 phpdoc-es/reference/stream/functions/stream-filter-append.xml:1.3 --- phpdoc-es/reference/stream/functions/stream-filter-append.xml:1.2 Mon Apr 5 03:41:47 2004 +++ phpdoc-es/reference/stream/functions/stream-filter-append.xml Thu Jun 17 23:29:28 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.10 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.11 Maintainer: lboshell Status: ready --> <refentry id="function.stream-filter-append"> <refnamediv> <refname>stream_filter_append</refname> @@ -104,7 +104,7 @@ <simpara> Vea también <function>stream_filter_register</function>, y - <function>stream_filter_prepend</function> + <function>stream_filter_prepend</function>. </simpara> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/stream/functions/stream-filter-prepend.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/stream/functions/stream-filter-prepend.xml diff -u phpdoc-es/reference/stream/functions/stream-filter-prepend.xml:1.2 phpdoc-es/reference/stream/functions/stream-filter-prepend.xml:1.3 --- phpdoc-es/reference/stream/functions/stream-filter-prepend.xml:1.2 Mon Apr 5 03:41:47 2004 +++ phpdoc-es/reference/stream/functions/stream-filter-prepend.xml Thu Jun 17 23:29:28 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.8 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.9 Maintainer: lboshell Status: ready --> <refentry id="function.stream-filter-prepend"> <refnamediv> <refname>stream_filter_prepend</refname> @@ -66,7 +66,7 @@ </note> <simpara> Vea también <function>stream_filter_register</function>, y - <function>stream_filter_append</function> + <function>stream_filter_append</function>. </simpara> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/stream/functions/stream-filter-register.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-es/reference/stream/functions/stream-filter-register.xml diff -u phpdoc-es/reference/stream/functions/stream-filter-register.xml:1.5 phpdoc-es/reference/stream/functions/stream-filter-register.xml:1.6 --- phpdoc-es/reference/stream/functions/stream-filter-register.xml:1.5 Tue Apr 13 23:23:56 2004 +++ phpdoc-es/reference/stream/functions/stream-filter-register.xml Thu Jun 17 23:29:28 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.8 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.9 Maintainer: lboshell Status: ready --> <refentry id="function.stream-filter-register"> <refnamediv> <refname>stream_filter_register</refname> @@ -316,10 +316,10 @@ </para> <simpara> - Vea también: + Vea también <function>stream_wrapper_register</function>, <function>stream_filter_prepend</function>, y - <function>stream_filter_append</function> + <function>stream_filter_append</function>. </simpara> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/stream/functions/stream-get-contents.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/stream/functions/stream-get-contents.xml diff -u phpdoc-es/reference/stream/functions/stream-get-contents.xml:1.1 phpdoc-es/reference/stream/functions/stream-get-contents.xml:1.2 --- phpdoc-es/reference/stream/functions/stream-get-contents.xml:1.1 Mon Dec 22 01:21:43 2003 +++ phpdoc-es/reference/stream/functions/stream-get-contents.xml Thu Jun 17 23:29:28 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.3 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.4 Maintainer: lboshell Status: ready --> <refentry id="function.stream-get-contents"> <refnamediv> <refname>stream_get_contents</refname> @@ -14,19 +14,17 @@ <methodparam choice="opt"><type>int</type><parameter>longitud_maxima</parameter></methodparam> </methodsynopsis> <para> -Función idéntica -a <function>file_get_contents</function>, excepto -que <function>stream_get_contents</function> opera en un recurso de -archivo ya abierto y devuelve el contenido restante, hasta un -máximo de <parameter>longitud_maxima</parameter> bytes, en una -cadena. + Función idéntica a + <function>file_get_contents</function>, excepto que + <function>stream_get_contents</function> opera en un recurso de + archivo ya abierto y devuelve el contenido restante, hasta un + máximo de <parameter>longitud_maxima</parameter> bytes, en + una cadena. </para> ¬e.bin-safe; <simpara> - Vea también: - <function>fgets</function>, - <function>fread</function>, y - <function>fpassthru</function>. + Vea también <function>fgets</function>, + <function>fread</function>, y <function>fpassthru</function>. </simpara> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/stream/functions/stream-get-filters.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/stream/functions/stream-get-filters.xml diff -u phpdoc-es/reference/stream/functions/stream-get-filters.xml:1.1 phpdoc-es/reference/stream/functions/stream-get-filters.xml:1.2 --- phpdoc-es/reference/stream/functions/stream-get-filters.xml:1.1 Mon Dec 22 01:21:43 2003 +++ phpdoc-es/reference/stream/functions/stream-get-filters.xml Thu Jun 17 23:29:28 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.6 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.7 Maintainer: lboshell Status: ready --> <refentry id="function.stream-get-filters"> <refnamediv> <refname>stream_get_filters</refname> @@ -13,8 +13,8 @@ <void/> </methodsynopsis> <simpara> -Devuelve una matriz indexada que contiene el nombre de todos los -filtros de secuencia disponibles en el sistema actual. + Devuelve una matriz indexada que contiene el nombre de todos los + filtros de secuencia disponibles en el sistema actual. </simpara> <para> <example> @@ -28,8 +28,8 @@ ]]> </programlisting> <para> -La salida será similar a la siguiente. Nota: pueden haber -más o menos filtros en su versión de PHP. + La salida será similar a la siguiente. Nota: pueden + haber más o menos filtros en su versión de PHP. </para> <screen> <![CDATA[ @@ -45,9 +45,8 @@ </example> </para> <para> - Vea también - <function>stream_filter_register</function>, y - <function>stream_get_wrappers</function> + Vea también <function>stream_filter_register</function>, y + <function>stream_get_wrappers</function>. </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/stream/functions/stream-get-line.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/stream/functions/stream-get-line.xml diff -u phpdoc-es/reference/stream/functions/stream-get-line.xml:1.2 phpdoc-es/reference/stream/functions/stream-get-line.xml:1.3 --- phpdoc-es/reference/stream/functions/stream-get-line.xml:1.2 Wed Mar 31 20:03:31 2004 +++ phpdoc-es/reference/stream/functions/stream-get-line.xml Thu Jun 17 23:29:28 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.2 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.3 Maintainer: lboshell Status: ready --> <refentry id="function.stream-get-line"> <refnamediv> <refname>stream_get_line</refname> @@ -39,7 +39,7 @@ Vea también <function>fread</function>, <function>fgets</function>, y - <function>fgetc</function>, + <function>fgetc</function>. </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/stream/functions/stream-get-transports.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/stream/functions/stream-get-transports.xml diff -u phpdoc-es/reference/stream/functions/stream-get-transports.xml:1.1 phpdoc-es/reference/stream/functions/stream-get-transports.xml:1.2 --- phpdoc-es/reference/stream/functions/stream-get-transports.xml:1.1 Mon Dec 22 01:21:43 2003 +++ phpdoc-es/reference/stream/functions/stream-get-transports.xml Thu Jun 17 23:29:28 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 --> <refentry id="function.stream-get-transports"> <refnamediv> <refname>stream_get_transports</refname> @@ -14,8 +14,8 @@ <void/> </methodsynopsis> <simpara> -Devuelve una matriz indexada que contiene los nombres de todos los -transportes de socket disponibles en el sistema actual. + Devuelve una matriz indexada que contiene los nombres de todos + los transportes de socket disponibles en el sistema actual. </simpara> <para> <example> @@ -48,7 +48,7 @@ <para> Vea también <function>stream_get_filters</function>, y - <function>stream_get_wrappers</function> + <function>stream_get_wrappers</function>. </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/stream/functions/stream-get-wrappers.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/stream/functions/stream-get-wrappers.xml diff -u phpdoc-es/reference/stream/functions/stream-get-wrappers.xml:1.1 phpdoc-es/reference/stream/functions/stream-get-wrappers.xml:1.2 --- phpdoc-es/reference/stream/functions/stream-get-wrappers.xml:1.1 Mon Dec 22 01:21:43 2003 +++ phpdoc-es/reference/stream/functions/stream-get-wrappers.xml Thu Jun 17 23:29:28 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.3 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.4 Maintainer: lboshell Status: ready --> <refentry id="function.stream-get-wrappers"> <refnamediv> <refname>stream_get_wrappers</refname> @@ -14,12 +14,12 @@ <void/> </methodsynopsis> <para> -Devuelve una matriz indexada que contiene los nombres de todas las -envolturas de secuencia disponibles en el sistema actual. + Devuelve una matriz indexada que contiene los nombres de todas + las envolturas de secuencia disponibles en el sistema actual. </para> <para> Vea también - <function>stream_wrapper_register</function> + <function>stream_wrapper_register</function>. </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/stream/functions/stream-select.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/stream/functions/stream-select.xml diff -u phpdoc-es/reference/stream/functions/stream-select.xml:1.2 phpdoc-es/reference/stream/functions/stream-select.xml:1.3 --- phpdoc-es/reference/stream/functions/stream-select.xml:1.2 Mon Apr 12 12:09:24 2004 +++ phpdoc-es/reference/stream/functions/stream-select.xml Thu Jun 17 23:29:28 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.8 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.9 Maintainer: lboshell Status: ready --> <refentry id="function.stream-select"> <refnamediv> <refname>stream_select</refname> @@ -192,8 +192,7 @@ </para> </note> <para> - Vea también - <function>stream_set_blocking</function> + Vea también <function>stream_set_blocking</function>. </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/stream/functions/stream-set-timeout.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/stream/functions/stream-set-timeout.xml diff -u phpdoc-es/reference/stream/functions/stream-set-timeout.xml:1.2 phpdoc-es/reference/stream/functions/stream-set-timeout.xml:1.3 --- phpdoc-es/reference/stream/functions/stream-set-timeout.xml:1.2 Mon Apr 5 03:41:47 2004 +++ phpdoc-es/reference/stream/functions/stream-set-timeout.xml Thu Jun 17 23:29:28 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.6 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.7 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/network.xml, last change in rev 1.18 --> <refentry id="function.stream-set-timeout"> <refnamediv> @@ -59,8 +59,8 @@ nombres se considera obsoleto. </para> <para> - Vea también: - <function>fsockopen</function> y <function>fopen</function>. + Vea también <function>fsockopen</function> y + <function>fopen</function>. </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/stream/functions/stream-set-write-buffer.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/stream/functions/stream-set-write-buffer.xml diff -u phpdoc-es/reference/stream/functions/stream-set-write-buffer.xml:1.2 phpdoc-es/reference/stream/functions/stream-set-write-buffer.xml:1.3 --- phpdoc-es/reference/stream/functions/stream-set-write-buffer.xml:1.2 Mon Apr 5 03:41:47 2004 +++ phpdoc-es/reference/stream/functions/stream-set-write-buffer.xml Thu Jun 17 23:29:28 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/filesystem.xml, last change in rev 1.2 --> <refentry id="function.stream-set-write-buffer"> <refnamediv> @@ -58,8 +58,8 @@ </para> <simpara> - Vea también - <function>fopen</function> y <function>fwrite</function>. + Vea también <function>fopen</function> y + <function>fwrite</function>. </simpara> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/stream/functions/stream-socket-client.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-es/reference/stream/functions/stream-socket-client.xml diff -u phpdoc-es/reference/stream/functions/stream-socket-client.xml:1.4 phpdoc-es/reference/stream/functions/stream-socket-client.xml:1.5 --- phpdoc-es/reference/stream/functions/stream-socket-client.xml:1.4 Mon Apr 12 12:09:24 2004 +++ phpdoc-es/reference/stream/functions/stream-socket-client.xml Thu Jun 17 23:29:28 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.10 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.11 Maintainer: lboshell Status: ready --> <refentry id="function.stream-socket-client"> <refnamediv> <refname>stream_socket_client</refname> @@ -113,8 +113,8 @@ hora desde el servicio UDP "daytime" (puerto 13) en su máquina local. <example> - <title>Uso de una conexión UDP</title> - <programlisting role="php"> + <title>Uso de una conexión UDP</title> + <programlisting role="php"> <![CDATA[ <?php $da = stream_socket_client("udp://127.0.0.1:13", $errno, $errstr); @@ -127,7 +127,7 @@ } ?> ]]> - </programlisting> + </programlisting> </example> <warning> <simpara> @@ -141,7 +141,9 @@ datos. </simpara> </warning> - &ipv6.brackets; + </para> + &ipv6.brackets; + <para> Vea también <function>stream_socket_server</function>, <function>stream_set_blocking</function>, <function>stream_set_timeout</function>, http://cvs.php.net/diff.php/phpdoc-es/reference/stream/functions/stream-socket-get-name.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/stream/functions/stream-socket-get-name.xml diff -u phpdoc-es/reference/stream/functions/stream-socket-get-name.xml:1.1 phpdoc-es/reference/stream/functions/stream-socket-get-name.xml:1.2 --- phpdoc-es/reference/stream/functions/stream-socket-get-name.xml:1.1 Sun Dec 28 00:19:27 2003 +++ phpdoc-es/reference/stream/functions/stream-socket-get-name.xml Thu Jun 17 23:29:28 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 --> <refentry id="function.stream-socket-get-name"> <refnamediv> <refname>stream_socket_get_name</refname> @@ -15,15 +15,14 @@ <methodparam><type>bool</type><parameter>desea_nombre_del_par</parameter></methodparam> </methodsynopsis> <para> -Devuelve el nombre local o remoto de una conexión de socket -dada. Si -<parameter>desea_nombre_del_par</parameter> es definido como &true;, el -nombre de socket remoto será devuelto, si es definido como -&false;, se devolverá el nombre de socket local. + Devuelve el nombre local o remoto de una conexión de + socket dada. Si <parameter>desea_nombre_del_par</parameter> es + definido como &true;, el nombre de socket remoto será + devuelto, si es definido como &false;, se devolverá el + nombre de socket local. </para> <para> - Vea también - <function>stream_socket_accept</function> + Vea también <function>stream_socket_accept</function>. </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/stream/functions/stream-socket-server.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-es/reference/stream/functions/stream-socket-server.xml diff -u phpdoc-es/reference/stream/functions/stream-socket-server.xml:1.5 phpdoc-es/reference/stream/functions/stream-socket-server.xml:1.6 --- phpdoc-es/reference/stream/functions/stream-socket-server.xml:1.5 Mon Apr 5 03:41:47 2004 +++ phpdoc-es/reference/stream/functions/stream-socket-server.xml Thu Jun 17 23:29:28 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.14 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.15 Maintainer: lboshell Status: ready --> <refentry id="function.stream-socket-server"> <refnamediv> <refname>stream_socket_server</refname> @@ -87,21 +87,21 @@ ]]> </programlisting> </example> - </para> - <para> - El siguiente ejemplo muestra como actuar como servidor de hora, - el cual puede responder a consultas sobre la hora actual, tal y - como se muestra en un ejemplo ubicado en la página - sobre <function>stream_socket_client</function>. - <note> - <simpara> - La mayoría de sistemas requieren acceso de root para - crear un socket de servidor en un puerto menor a 1024. - </simpara> - </note> + </para> + <para> + El siguiente ejemplo muestra como actuar como servidor de hora, + el cual puede responder a consultas sobre la hora actual, tal y + como se muestra en un ejemplo ubicado en la página sobre + <function>stream_socket_client</function>. + <note> + <simpara> + La mayoría de sistemas requieren acceso de root para + crear un socket de servidor en un puerto menor a 1024. + </simpara> + </note> <example> - <title>Uso de sockets de servidor UDP</title> - <programlisting role="php"> + <title>Uso de sockets de servidor UDP</title> + <programlisting role="php"> <![CDATA[ <?php $socket = stream_socket_server("udp://0.0.0.0:13", $errno, $errstr, STREAM_SERVER_BIND); @@ -116,19 +116,18 @@ } ?> ]]> - </programlisting> + </programlisting> </example> - </para> - &ipv6.brackets; - <para> - Vea también - <function>stream_socket_client</function>, - <function>stream_set_blocking</function>, - <function>stream_set_timeout</function>, - <function>fgets</function>, - <function>fgetss</function>, <function>fwrite</function>, - <function>fclose</function>, <function>feof</function>, y - la <link linkend="ref.curl">extensión Curl</link>. + </para> + &ipv6.brackets; + <para> + Vea también <function>stream_socket_client</function>, + <function>stream_set_blocking</function>, + <function>stream_set_timeout</function>, + <function>fgets</function>, <function>fgetss</function>, + <function>fwrite</function>, <function>fclose</function>, + <function>feof</function>, y la <link + linkend="ref.curl">extensión Curl</link>. </para> </refsect1> </refentry> http://cvs.php.net/co.php/phpdoc-es/reference/domxml/functions/DomNode-attributes.xml?r=1.1&p=1 Index: phpdoc-es/reference/domxml/functions/DomNode-attributes.xml +++ phpdoc-es/reference/domxml/functions/DomNode-attributes.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.domnode-attributes'> <refnamediv> <refname>DomNode->attributes</refname> <refpurpose> Devuelve la lista de atributos </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>array</type><methodname>DomNode->attributes</methodname> <void/> </methodsynopsis> <para> Esta función solo devuelve una matriz de atributos si el nodo es de tipo XML_ELEMENT_NODE. </para> <para> (Sólo PHP >= 4.3) Si no se encuentran atributos, se devuelve NULL. </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/DomNode-child-nodes.xml?r=1.1&p=1 Index: phpdoc-es/reference/domxml/functions/DomNode-child-nodes.xml +++ phpdoc-es/reference/domxml/functions/DomNode-child-nodes.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.domnode-child-nodes'> <refnamediv> <refname>DomNode->child_nodes</refname> <refpurpose> Devuelve los hijos del nodo </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>array</type><methodname>DomNode->child_nodes</methodname> <void/> </methodsynopsis> <para> Devuelve todos los hijos del nodo. </para> <para> Vea también <function>domnode_next_sibling</function>, y <function>domnode_previous_sibling</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/DomNode-clone-node.xml?r=1.1&p=1 Index: phpdoc-es/reference/domxml/functions/DomNode-clone-node.xml +++ phpdoc-es/reference/domxml/functions/DomNode-clone-node.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.39 --> <refentry id='function.domnode-clone-node'> <refnamediv> <refname>DomNode->clone_node</refname> <refpurpose> Clona un nodo </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>object</type><methodname>DomNode->clone_node</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/co.php/phpdoc-es/reference/domxml/functions/DomNode-dump-node.xml?r=1.1&p=1 Index: phpdoc-es/reference/domxml/functions/DomNode-dump-node.xml +++ phpdoc-es/reference/domxml/functions/DomNode-dump-node.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.39 --> <refentry id='function.domnode-dump-node'> <refnamediv> <refname>DomNode->dump_node</refname> <refpurpose> Vuelca un nodo único </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>string</type><methodname>DomNode->dump_node</methodname> <void/> </methodsynopsis> <para> &warn.undocumented.func; </para> <para> Vea también <function>domdocument_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/DomNode-first-child.xml?r=1.1&p=1 Index: phpdoc-es/reference/domxml/functions/DomNode-first-child.xml +++ phpdoc-es/reference/domxml/functions/DomNode-first-child.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.domnode-first-child'> <refnamediv> <refname>DomNode->first_child</refname> <refpurpose> Devuelve el primer hijo del nodo </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>object</type><methodname>DomNode->first_child</methodname> <void/> </methodsynopsis> <para> Devuelve el primer hijo del nodo. </para> <para> (Sólo PHP >= 4.3) Si no se encuentra un hijo, se devuelve NULL. </para> <para> Vea también <function>domnode_last_child</function>, y <function>domnode_next_sibling</function>, <function>domnode_previous_sibling</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/DomNode-get-content.xml?r=1.1&p=1 Index: phpdoc-es/reference/domxml/functions/DomNode-get-content.xml +++ phpdoc-es/reference/domxml/functions/DomNode-get-content.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.39 --> <refentry id='function.domnode-get-content'> <refnamediv> <refname>DomNode->get_content</refname> <refpurpose> Obtiene el contenido del nodo </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>string</type><methodname>DomNode->get_content</methodname> <void/> </methodsynopsis> <para> Esta función devuelve el contenido del nodo mismo. </para> <para> <example> <title>Obtener el contenido</title> <programlisting role="php"> <![CDATA[ <?php if (!$dom = domxml_open_mem($codena_xml)) { echo "Ocurrió un error al analizar el documento\n"; exit; } $raiz = $dom->document_element(); $matriz_nodos = $raiz->get_elements_by_tagname("element"); for ($i = 0; $i<count($matriz_nodos); $i++) { $nodo = $matriz_nodos[$i]; echo "El elemento[$i] is: " . $nodo->get_content(); } ?> ]]> </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/DomNode-has-attributes.xml?r=1.1&p=1 Index: phpdoc-es/reference/domxml/functions/DomNode-has-attributes.xml +++ phpdoc-es/reference/domxml/functions/DomNode-has-attributes.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.domnode-has-attributes'> <refnamediv> <refname>DomNode->has_attributes</refname> <refpurpose> Verifica si un nodo tiene atributos </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>bool</type><methodname>DomNode->has_attributes</methodname> <void/> </methodsynopsis> <para> Esta función verifica si el nodo tiene atributos. </para> <para> Vea también <function>domnode_has_child_nodes</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/DomNode-has-child-nodes.xml?r=1.1&p=1 Index: phpdoc-es/reference/domxml/functions/DomNode-has-child-nodes.xml +++ phpdoc-es/reference/domxml/functions/DomNode-has-child-nodes.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.domnode-has-child-nodes'> <refnamediv> <refname>DomNode->has_child_nodes</refname> <refpurpose> Verifica si el nodo tiene hijos </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>bool</type><methodname>DomNode->has_child_nodes</methodname> <void/> </methodsynopsis> <para> Esta función verifica si el nodo tiene hijos. </para> <para> Vea también <function>domnode_child_nodes</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/DomNode-insert-before.xml?r=1.1&p=1 Index: phpdoc-es/reference/domxml/functions/DomNode-insert-before.xml +++ phpdoc-es/reference/domxml/functions/DomNode-insert-before.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.8 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 --> <refentry id='function.domnode-insert-before'> <refnamediv> <refname>DomNode->insert_before</refname> <refpurpose> Inserta un nodo nuevo como hijo </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>object</type><methodname>DomNode->insert_before</methodname> <methodparam><type>object</type><parameter>nodo_nuevo</parameter></methodparam> <methodparam><type>object</type><parameter>nodo_ref</parameter></methodparam> </methodsynopsis> <para> Esta función inserta el nuevo nodo, <parameter>nodo_nuevo</parameter>, justo antes del nodo <parameter>nodo_ref</parameter>. El valor de retorno es el nodo insertado. Si planea hacer modificaciones posteriores sobre el hijo agregado, debe usar el nodo devuelto. </para> <para> (Sólo PHP >= 4.3) Si <parameter>nodo_nuevo</parameter> ya es parte de un documento, será primero desenlazado de su contexto actual. Si <parameter>nodo_ref</parameter> es NULL, entonces <parameter>nodo_nuevo</parameter> será insertado al final de la lista de hijos. </para> <para> <function>domnode_insert_before</function> es bastante similar a <function>domnode_append_child</function> como muestra el siguiente ejemplo, el cual hace lo mismo que el ejemplo en <function>domnode_append_child</function>. </para> <para> <example> <title>Agregar un hijo</title> <programlisting role="php"> <![CDATA[ <?php include("ejemplo.inc"); if (!$dom = domxml_open_mem($cadena_xml)) { echo "Ocurrió un error al analizar el documento\n"; exit; } $elementos = $dom->get_elements_by_tagname("informaltable"); print_r($elementos); $elemento = $elementos[0]; $nodo_nuevo = $elemento->insert_before($elemento, $elemento); $hijos = $nodo_nuevo->children(); $atr = $hijos[1]->set_attribute("align", "left"); echo "<pre>"; $archivo_xml = $dom->dump_mem(); echo htmlentities($archivo_xml); echo "</pre>"; ?> ]]> </programlisting> </example> </para> <para> Vea también <function>domnode_append_child</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/DomNode-is-blank-node.xml?r=1.1&p=1 Index: phpdoc-es/reference/domxml/functions/DomNode-is-blank-node.xml +++ phpdoc-es/reference/domxml/functions/DomNode-is-blank-node.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.39 --> <refentry id='function.domnode-is-blank-node'> <refnamediv> <refname>DomNode->is_blank_node</refname> <refpurpose> Verifica si el nodo está en blanco </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>bool</type><methodname>DomNode->is_blank_node</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/co.php/phpdoc-es/reference/domxml/functions/DomNode-last-child.xml?r=1.1&p=1 Index: phpdoc-es/reference/domxml/functions/DomNode-last-child.xml +++ phpdoc-es/reference/domxml/functions/DomNode-last-child.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.domnode-last-child'> <refnamediv> <refname>DomNode->last_child</refname> <refpurpose> Devuelve el último hijo del nodo </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>object</type><methodname>DomNode->last_child</methodname> <void/> </methodsynopsis> <para> Devuelve el último hijo del nodo. </para> <para> (Sólo PHP >= 4.3) Si no se encuentra un último hijo, se devuelve NULL. </para> <para> Vea también <function>domnode_first_child</function>, y <function>domnode_next_sibling</function>, <function>domnode_previous_sibling</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/DomNode-next-sibling.xml?r=1.1&p=1 Index: phpdoc-es/reference/domxml/functions/DomNode-next-sibling.xml +++ phpdoc-es/reference/domxml/functions/DomNode-next-sibling.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.domnode-next-sibling'> <refnamediv> <refname>DomNode->next_sibling</refname> <refpurpose> Devuelve el siguiente hermano del nodo </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>object</type><methodname>DomNode->next_sibling</methodname> <void/> </methodsynopsis> <para> Esta función devuelve el siguiente hermano del nodo actual. Si no hay un siguiente hermano, devuelve &false; (< 4.3) o null (>= 4.3). Es posible usar esta función para iterar sobre los hijos de un nodo, como se muestra en el ejemplo a continuación. </para> <para> <example> <title>Iterar sobre los hijos</title> <programlisting role="php"> <![CDATA[ <?php include("ejemplo.inc"); if (!$dom = domxml_open_mem($cadena_xml)) { echo "Ocurrió un error al analizar el documento\n"; exit; } $elementos = $dom->get_elements_by_tagname("tbody"); $elemento = $elementos[0]; $hijo = $elemento->first_child(); while ($hijo) { print_r($hijo); $hijo = $hijo->next_sibling(); } ?> ]]> </programlisting> </example> </para> <para> Vea también <function>domnode_previous_sibling</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/DomNode-node-name.xml?r=1.1&p=1 Index: phpdoc-es/reference/domxml/functions/DomNode-node-name.xml +++ phpdoc-es/reference/domxml/functions/DomNode-node-name.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.domnode-node-name'> <refnamediv> <refname>DomNode->node_name</refname> <refpurpose> Devuelve el nombre del nodo </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>string</type><methodname>DomNode->node_name</methodname> <void/> </methodsynopsis> <para> Devuelve el nombre del nodo. El nombre tiene significados diferentes para los diferentes tipos de nodo, como se ilustra en la siguiente tabla. <table> <title>Significado de valores</title> <tgroup cols="2"> <thead> <row> <entry>Tipo</entry> <entry>Significado</entry> </row> </thead> <tbody> <row> <entry>DomAttribute</entry> <entry>valor del atributo</entry> </row> <row> <entry>DomAttribute</entry> <entry></entry> </row> <row> <entry>DomCDataSection</entry> <entry>sección-#cdata</entry> </row> <row> <entry>DomComment</entry> <entry>#comment</entry> </row> <row> <entry>DomDocument</entry> <entry>#document</entry> </row> <row> <entry>DomDocumentType</entry> <entry>nombre del tipo de documento</entry> </row> <row> <entry>DomElement</entry> <entry>nombre de la etiqueta</entry> </row> <row> <entry>DomEntity</entry> <entry>nombre de la entidad</entry> </row> <row> <entry>DomEntityReference</entry> <entry>nombre de referencia a entidad</entry> </row> <row> <entry>DomNotation</entry> <entry>nombre de notación</entry> </row> <row> <entry>DomProcessingInstruction</entry> <entry>destino</entry> </row> <row> <entry>DomText</entry> <entry>#text</entry> </row> </tbody> </tgroup> </table> </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/DomNode-node-type.xml?r=1.1&p=1 Index: phpdoc-es/reference/domxml/functions/DomNode-node-type.xml +++ phpdoc-es/reference/domxml/functions/DomNode-node-type.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.domnode-node-type'> <refnamediv> <refname>DomNode->node_type</refname> <refpurpose> Devuelve el tipo de nodo </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>int</type><methodname>DomNode->node_type</methodname> <void/> </methodsynopsis> <para> Devuelve el tipo del nodo. Todos los tipos posibles son listados en la tabla de la introducción. </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/DomNode-node-value.xml?r=1.1&p=1 Index: phpdoc-es/reference/domxml/functions/DomNode-node-value.xml +++ phpdoc-es/reference/domxml/functions/DomNode-node-value.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.domnode-node-value'> <refnamediv> <refname>DomNode->node_value</refname> <refpurpose> Devuelve el valor de un nodo </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>string</type><methodname>DomNode->node_value</methodname> <void/> </methodsynopsis> <para> Devuelve el valor del nodo. El valor tiene significados diferentes para los diferentes tipos de nodos, como se ilustra en la siguiente tabla. <table> <title>Significado de valores</title> <tgroup cols="2"> <thead> <row> <entry>Tipo</entry> <entry>Significado</entry> </row> </thead> <tbody> <row> <entry>DomAttribute</entry> <entry>valor del atributo</entry> </row> <row> <entry>DomAttribute</entry> <entry></entry> </row> <row> <entry>DomCDataSection</entry> <entry>contenido</entry> </row> <row> <entry>DomComment</entry> <entry>contenido del comentario</entry> </row> <row> <entry>DomDocument</entry> <entry>null</entry> </row> <row> <entry>DomDocumentType</entry> <entry>null</entry> </row> <row> <entry>DomElement</entry> <entry>null</entry> </row> <row> <entry>DomEntity</entry> <entry>null</entry> </row> <row> <entry>DomEntityReference</entry> <entry>null</entry> </row> <row> <entry>DomNotation</entry> <entry>null</entry> </row> <row> <entry>DomProcessingInstruction</entry> <entry>contenido completo sin destino</entry> </row> <row> <entry>DomText</entry> <entry>contenido del texto</entry> </row> </tbody> </tgroup> </table> </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/faq/installation.xml?r1=1.7&r2=1.8&ty=u Index: phpdoc-es/faq/installation.xml diff -u phpdoc-es/faq/installation.xml:1.7 phpdoc-es/faq/installation.xml:1.8 --- phpdoc-es/faq/installation.xml:1.7 Tue Jun 1 23:38:36 2004 +++ phpdoc-es/faq/installation.xml Thu Jun 17 23:29:27 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> -<!-- EN-Revision: 1.28 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.8 $ --> +<!-- EN-Revision: 1.30 Maintainer: lboshell Status: ready --> <chapter id="faq.installation"> <title>Instalación</title> <titleabbrev>Instalación</titleabbrev> @@ -22,6 +22,111 @@ </para> <qandaset> + <qandaentry id="faq.installation.apache2"> + <question> + <para> + ¿Porqué no debo usar Apache 2 en un entorno en + producción? + </para> + </question> + <answer> + <para> + La siguiente respuesta se encuentra basada en este extracto + modificado de un correo por Rasmus Lerdorf. + </para> + <para> + Apache 2 es una versión escrita desde ceros y una + completa modificación de arquitectura a partir de Apache + 1. No es como ir de PHP 3 a PHP4, o de PHP 4 a PHP 5. Hay + bastante código que es común, y ciertamente la + arquitectura base de PHP no ha cambiado a través de los + años. Asi que comparar Apache 1 y Apache 2 contra PHP 4 y + PHP 5 no tiene sentido. La arquitectura ha sido probada a lo + largo de los años y el código, aunque es un poco + inmanejable en algunas partes, es una entidad conocida. PHP fue + diseñado desde los primeros días contra aquella + arquitectura básica de Apache 1 y funciona extremadamente + bien cuando se usa con éste. + </para> + <para> + La característica más importante que atrae a la + gente a Apache 2 es el uso de hilos. En Windows, en donde la + mayoría de bibliotecas básicos son, y deben ser, + seguras con hilos, Apache 2 realmente tiene sentido y + sería bueno resolver los pequeños problemas en esa + plataforma. Sin embargo, en UNIX existen bastante bibliotecas + básicas en donde no se conoce su seguridad con hilos. Y + no se trata de extensiones PHP, se trata de bibliotecas de + terceros por debajo de los cientos de extensiones de PHP. Es + realmente difícil determinar si cierta biblioteca externa + es segura con hilos. Existen bastantes variables involucradas, + incluyendo el SO, la versión del SO, la biblioteca libc, + la versión de esa biblioteca e incluso, en algunas + plataformas, las banderas de compilación usadas para + generar las bibliotecas. Y para hacerlo aun más + divertido, rastrear un problema de seguridad con hilos se + encuentra bastante cerca a lo imposible. Cientos de personas + bien pueden declarar que Apache+PHP+cualquier/extensión + funciona perfectamente para ellos, pero quizás ellos + sólo reciben un millón de peticiones al + día. Luego llega otro usuario quien recibe 100 millones + de peticiones al día y usa una avanzada máquina + con doble-procesador y todo se arruina ya que de repente ahora + la oportunidad para alguna pequeña condición de + carrera se ha hecho mucho mayor debido a las velocidades + más rápidas de cpu, el segundo cpu y la mayor + frecuencia de las peticiones. Y el reporte del fallo que + recibimos de este usuario será algo similar a: + </para> + <blockquote> + <para> + A veces no funciona. La mayoría de veces funciona bien, + pero de repente de vez en cuando no. El error es diferente + cada vez y no tengo idea de cómo reproducirlo, + ¡pero arréglenlo de inmediato!!! + </para> + </blockquote> + + <para>¿Qué podemos hacer al respecto?</para> + <para> + Hay un número de razones técnicas (que pueden + resolverse) por las que Rasmus no piensa que Apache2+PHP sea una + buena idea en un entorno en producción, pero + dejándolas de lado, realmente todo converge a un simple + concepto: + </para> + <para> + PHP es pegamento. Es el pegamento usado para construir + interesantes aplicaciones web, uniendo docenas de bibliotecas + externas y haciéndolas parecer una entidad coherente a + través de una interfaz de lenguaje intuitiva y + fácil de aprender. La flexibilidad y poder de PHP depende + de la estabilidad y robustez de la plataforma + subyacente. Necesita de un SO que funcione, un servidor web que + funcione y unas bibliotecas externas que funcionen para unirlo + todo. Cuando uno cualquiera de estos elementos deja de trabajar, + PHP necesita identificar los problemas y solucionarlos + rápidamente. Al hacer más complejo el marco de + referencia base, no disponiendo de hilos de ejecución + completamente separados, segmentos de memoria completamente + separados y una caja de arena segura para que cada + petición trabaje, se introduce una base débil al + sistema de PHP. + </para> + <para> + Usar la versión mpm anterior a la bifurcación + ocurrida en Apache 2 para evitar el uso de hilos es posible, y + sí, también funciona usar un mecanismo + independiente fastcgi para evitar los hilos, pero entonces se + estarían evitando características que definen al + servidor web. En este punto de desarrollo, Rasmus aun afirma que + se está mejor siguiendo con Apache 1 para servir + páginas PHP, con la nota de precaución de que + Apache 1 opera bastante mal en Windows. + </para> + </answer> + </qandaentry> + <qandaentry id="faq.installation.phpini"> <question> <para> http://cvs.php.net/diff.php/phpdoc-es/reference/filesystem/functions/fpassthru.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/filesystem/functions/fpassthru.xml diff -u phpdoc-es/reference/filesystem/functions/fpassthru.xml:1.1 phpdoc-es/reference/filesystem/functions/fpassthru.xml:1.2 --- phpdoc-es/reference/filesystem/functions/fpassthru.xml:1.1 Sun Apr 14 20:13:59 2002 +++ phpdoc-es/reference/filesystem/functions/fpassthru.xml Thu Jun 17 23:29:28 2004 @@ -1,42 +1,85 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/filesystem.xml, last change in rev 1.1 --> -<!-- last change to 'fpassthru' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.8 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 --> <refentry id="function.fpassthru"> <refnamediv> <refname>fpassthru</refname> - <refpurpose> - Saca todos los datos restantes del fichero apuntado - </refpurpose> + <refpurpose>Imprime todos los datos restantes en un apuntador de + archivo</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> - <type>int</type><methodname>fpassthru</methodname> - <methodparam><type>int</type><parameter>fp</parameter></methodparam> + <type>int</type><methodname>fpassthru</methodname> + <methodparam><type>resource</type><parameter>gestor</parameter></methodparam> </methodsynopsis> <simpara> - Lee hasta el EOF del fichero apuntado y escribe los resultados a - la salida estándar (stdout). + Lee hasta EOF en el apuntador de archivo dado a partir de la + posición actual y escribe los resultados en el + búfer de salida. </simpara> <simpara> Si ocurre un error, <function>fpassthru</function> devuelve - &false;. + &false;. De lo contrario, <function>fpassthru</function> devuelve + el número de caracteres leídos desde + <parameter>gestor</parameter> y pasados a la salida. </simpara> + &fs.validfp.all; <simpara> - El apuntador al fichero debe ser válido, y debe apuntar a un - fichero abierto con éxito por <function>fopen</function>, - <function>popen</function>, o <function>fsockopen</function>. - El fichero se cierra cuando <function>fpassthru</function> termina - de leerlo (dejando <parameter>fp</parameter> sin ninguna utilidad). + Puede que necesite llamar <function>rewind</function> para + restablecer el apuntador de archivo al comienzo de éste si + ya ha escrito datos en el archivo. El archivo es cerrado cuando + <function>fpassthru</function> ha terminado de leerlo (causando + que <parameter>gestor</parameter> se vuelva inútil). </simpara> <simpara> - Si sólo quieres volcar el contenido de un fichero a stdout puedes - If you just want to dump the contents of a file to stdout you may - usar la función <function>readfile</function>, la cual te libra - de la llamada a <function>fopen</function>. + Si tan sólo quiere volcar el contenido de un archivo al + búfer de salida, sin modificarlo o buscar un + desplazamiento en particular, puede que quiera usar la + función <function>readfile</function>, la cual le ahorra + la llamada a <function>fopen</function>. </simpara> + <note> + <para> + Cuando se usa <function>fpassthru</function> sobre un archivo + binario en sistemas Windows, debe asegurarse de abrir el archivo + en modo binario, agregando el valor <literal>b</literal> al modo + usado en la llamada a <function>fopen</function>. + </para> + <para> + Es recomendable usar la bandera <literal>b</literal> cuando + trate con archivos binarios, incluso si su sistema no lo + requiere, de modo que sus scripts sean más portables. + </para> + </note> + <para> + <example> + <title>Uso de <function>fpassthru</function> con archivos + binarios</title> + <programlisting role="php"> +<![CDATA[ +<?php + +// abrir el archivo en modo binario +$nombre = ".\public\dev\img\ok.png"; +$aa = fopen($nombre, 'rb'); + +// enviar las cabeceras correctas +header("Content-Type: image/png"); +header("Content-Length: " . filesize($nombre)); + +// volcar la imagen y detener el script +fpassthru($aa); +exit; + +?> +]]> + </programlisting> + </example> + </para> <simpara> - Ver también <function>readfile</function>, + Vea también <function>readfile</function>, <function>fopen</function>, <function>popen</function>, y <function>fsockopen</function> </simpara> http://cvs.php.net/diff.php/phpdoc-es/reference/filesystem/functions/fputs.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/filesystem/functions/fputs.xml diff -u phpdoc-es/reference/filesystem/functions/fputs.xml:1.1 phpdoc-es/reference/filesystem/functions/fputs.xml:1.2 --- phpdoc-es/reference/filesystem/functions/fputs.xml:1.1 Sun Apr 14 20:13:59 2002 +++ phpdoc-es/reference/filesystem/functions/fputs.xml Thu Jun 17 23:29:28 2004 @@ -1,26 +1,16 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/filesystem.xml, last change in rev 1.1 --> -<!-- last change to 'fputs' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.5 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 --> <refentry id="function.fputs"> <refnamediv> <refname>fputs</refname> - <refpurpose>Escribe en el fichero apuntado</refpurpose> + <refpurpose>Alias de <function>fwrite</function></refpurpose> </refnamediv> <refsect1> <title>Descripción</title> - <methodsynopsis> - <type>int</type><methodname>fputs</methodname> - <methodparam><type>int</type><parameter>fp</parameter></methodparam> - <methodparam><type>string</type><parameter>str</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter> - length - </parameter></methodparam> - </methodsynopsis> <para> - <function>fputs</function> es un alias de - <function>fwrite</function>, y es idéntico a él en todo. Notar - que el parámetro <parameter>length</parameter> es opcional y si - no se pone la cadena entera será escrita. + Esta función es un alias de <function>fwrite</function>. </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/filesystem/functions/fread.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/filesystem/functions/fread.xml diff -u phpdoc-es/reference/filesystem/functions/fread.xml:1.1 phpdoc-es/reference/filesystem/functions/fread.xml:1.2 --- phpdoc-es/reference/filesystem/functions/fread.xml:1.1 Sun Apr 14 20:13:59 2002 +++ phpdoc-es/reference/filesystem/functions/fread.xml Thu Jun 17 23:29:28 2004 @@ -1,40 +1,106 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/filesystem.xml, last change in rev 1.1 --> -<!-- last change to 'fread' in en/ tree in rev 1.25 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.16 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.25 --> <refentry id="function.fread"> <refnamediv> <refname>fread</refname> - <refpurpose>Lee ficheros en plan binario</refpurpose> + <refpurpose>Lectura de archivos segura con material + binario</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> - <type>string</type><methodname>fread</methodname> - <methodparam><type>int</type><parameter>fp</parameter></methodparam> - <methodparam><type>int</type><parameter>length</parameter></methodparam> + <type>string</type><methodname>fread</methodname> + <methodparam><type>resource</type><parameter>gestor</parameter></methodparam> + <methodparam><type>int</type><parameter>longitud</parameter></methodparam> </methodsynopsis> <simpara> <function>fread</function> lee hasta - <parameter>length</parameter> bytes del apuntador de fichero - referenciado por <parameter>fp</parameter>. La lectura acaba - cuando <parameter>length</parameter> bytes se han leido o se alcanza - EOF, lo que ocurra primero. + <parameter>longitud</parameter> bytes desde el apuntador de + archivo indicado por <parameter>gestor</parameter>. La lectura se + detiene cuando se han leído + <parameter>longitud</parameter> bytes, se alcanza EOF (el final + de archivo), o (en el caso de secuencias de red) cuando un + paquete se encuentra disponible, aquello que ocurra primero. </simpara> <para> <informalexample> <programlisting role="php"> -// Mete el contenido de un fichero en una cadena -$filename = "/usr/local/something.txt"; -$fd = fopen ($filename, "r"); -$contents = fread ($fd, filesize ($filename)); -fclose ($fd); +<![CDATA[ +<?php +// obtiene el contenido de un archivo en una cadena +$nombre_archivo = "/usr/local/algo.txt"; +$gestor = fopen($nombre_archivo, "r"); +$contenido = fread($gestor, filesize($nombre_archivo)); +fclose($gestor); +?> +]]> </programlisting> </informalexample> </para> + <warning> + <para> + En sistemas que diferencian entre archivos binarios y de texto + (es decir, Windows) el archivo debe ser abierto con el valor 'b' + incluido en el parámetro de modo de + <function>fopen</function>. + </para> + </warning> + <para> + <informalexample> + <programlisting role="php"> +<![CDATA[ +<?php +$nombre_archivo = "c:\\archivos\\una_imagen.gif"; +$gestor = fopen($nombre_archivo, "rb"); +$contenido = fread($gestor, filesize($nombre_archivo)); +fclose($gestor); +?> +]]> + </programlisting> + </informalexample> + </para> + + <warning> + <para> + Cuando se lee desde secuencias de red o pipes, como es el caso + cuando se leen <link linkend="features.remote-files">archivos + remotos</link> o desde <function>popen</function> y + <function>fsockopen</function>, la lectura se detendrá + después de que un paquete esté disponible. Esto + quiere decir que debe recolectar los datos en segmentos, como se + muestra en el ejemplo a continuación. + </para> + </warning> + <para> + <informalexample> + <programlisting role="php"> +<![CDATA[ +<?php +$gestor = fopen("http://www.example.com/", "rb"); +$contenido = ''; +while (!feof($gestor)) { + $contenido .= fread($gestor, 8192); +} +fclose($gestor); +?> +]]> + </programlisting> + </informalexample> + </para> + <note> + <para> + Si tan solo desea obtener el contenido de un archivo en una + cadena, use <function>file_get_contents</function>, ya que tiene + un rendimiento mucho mayor que el código anterior. + </para> + </note> <simpara> - Ver también <function>fwrite</function>, <function>fopen</function>, - <function>fsockopen</function>, <function>popen</function>, - <function>fgets</function>, <function>fgetss</function>, + Vea también <function>fwrite</function>, + <function>fopen</function>, <function>fsockopen</function>, + <function>popen</function>, <function>fgets</function>, + <function>fgetss</function>, <function>fscanf</function>, <function>file</function>, y <function>fpassthru</function>. </simpara> </refsect1> http://cvs.php.net/diff.php/phpdoc-es/reference/stream/functions/stream-context-create.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/stream/functions/stream-context-create.xml diff -u phpdoc-es/reference/stream/functions/stream-context-create.xml:1.1 phpdoc-es/reference/stream/functions/stream-context-create.xml:1.2 --- phpdoc-es/reference/stream/functions/stream-context-create.xml:1.1 Thu Dec 18 20:59:22 2003 +++ phpdoc-es/reference/stream/functions/stream-context-create.xml Thu Jun 17 23:29:28 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 --> <refentry id="function.stream-context-create"> <refnamediv> <refname>stream_context_create</refname> @@ -13,13 +13,14 @@ <methodparam><type>array</type><parameter>opciones</parameter></methodparam> </methodsynopsis> <simpara> -Crea y devuelve un contexto de secuencia con cualquier número -de opciones dadas en el conjunto <parameter>opciones</parameter>. + Crea y devuelve un contexto de secuencia con cualquier + número de opciones dadas en el conjunto + <parameter>opciones</parameter>. </simpara> <simpara> -Las <parameter>opciones</parameter> deben venir en una matriz -asociativa de matrices asociativas en el -formato <literal>$matriz['envoltura']['opcion'] = $valor</literal>. + Las <parameter>opciones</parameter> deben venir en una matriz + asociativa de matrices asociativas en el formato + <literal>$matriz['envoltura']['opcion'] = $valor</literal>. </simpara> <example> <title>Uso de <function>stream_context_create</function></title> @@ -46,10 +47,10 @@ </programlisting> </example> <simpara> - Vea También: - <function>stream_context_set_option</function>, y - el listado de envolturas soportadas con opciones de contexto - (<xref linkend="wrappers"/>) + Vea también + <function>stream_context_set_option</function>, y el listado de + envolturas soportadas con opciones de contexto (<xref + linkend="wrappers"/>). </simpara> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/stream/functions/stream-filter-append.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/stream/functions/stream-filter-append.xml diff -u phpdoc-es/reference/stream/functions/stream-filter-append.xml:1.2 phpdoc-es/reference/stream/functions/stream-filter-append.xml:1.3 --- phpdoc-es/reference/stream/functions/stream-filter-append.xml:1.2 Mon Apr 5 03:41:47 2004 +++ phpdoc-es/reference/stream/functions/stream-filter-append.xml Thu Jun 17 23:29:28 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.10 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.11 Maintainer: lboshell Status: ready --> <refentry id="function.stream-filter-append"> <refnamediv> <refname>stream_filter_append</refname> @@ -104,7 +104,7 @@ <simpara> Vea también <function>stream_filter_register</function>, y - <function>stream_filter_prepend</function> + <function>stream_filter_prepend</function>. </simpara> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/stream/functions/stream-filter-prepend.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/stream/functions/stream-filter-prepend.xml diff -u phpdoc-es/reference/stream/functions/stream-filter-prepend.xml:1.2 phpdoc-es/reference/stream/functions/stream-filter-prepend.xml:1.3 --- phpdoc-es/reference/stream/functions/stream-filter-prepend.xml:1.2 Mon Apr 5 03:41:47 2004 +++ phpdoc-es/reference/stream/functions/stream-filter-prepend.xml Thu Jun 17 23:29:28 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.8 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.9 Maintainer: lboshell Status: ready --> <refentry id="function.stream-filter-prepend"> <refnamediv> <refname>stream_filter_prepend</refname> @@ -66,7 +66,7 @@ </note> <simpara> Vea también <function>stream_filter_register</function>, y - <function>stream_filter_append</function> + <function>stream_filter_append</function>. </simpara> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/stream/functions/stream-filter-register.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-es/reference/stream/functions/stream-filter-register.xml diff -u phpdoc-es/reference/stream/functions/stream-filter-register.xml:1.5 phpdoc-es/reference/stream/functions/stream-filter-register.xml:1.6 --- phpdoc-es/reference/stream/functions/stream-filter-register.xml:1.5 Tue Apr 13 23:23:56 2004 +++ phpdoc-es/reference/stream/functions/stream-filter-register.xml Thu Jun 17 23:29:28 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.8 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.9 Maintainer: lboshell Status: ready --> <refentry id="function.stream-filter-register"> <refnamediv> <refname>stream_filter_register</refname> @@ -316,10 +316,10 @@ </para> <simpara> - Vea también: + Vea también <function>stream_wrapper_register</function>, <function>stream_filter_prepend</function>, y - <function>stream_filter_append</function> + <function>stream_filter_append</function>. </simpara> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/stream/functions/stream-get-contents.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/stream/functions/stream-get-contents.xml diff -u phpdoc-es/reference/stream/functions/stream-get-contents.xml:1.1 phpdoc-es/reference/stream/functions/stream-get-contents.xml:1.2 --- phpdoc-es/reference/stream/functions/stream-get-contents.xml:1.1 Mon Dec 22 01:21:43 2003 +++ phpdoc-es/reference/stream/functions/stream-get-contents.xml Thu Jun 17 23:29:28 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.3 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.4 Maintainer: lboshell Status: ready --> <refentry id="function.stream-get-contents"> <refnamediv> <refname>stream_get_contents</refname> @@ -14,19 +14,17 @@ <methodparam choice="opt"><type>int</type><parameter>longitud_maxima</parameter></methodparam> </methodsynopsis> <para> -Función idéntica -a <function>file_get_contents</function>, excepto -que <function>stream_get_contents</function> opera en un recurso de -archivo ya abierto y devuelve el contenido restante, hasta un -máximo de <parameter>longitud_maxima</parameter> bytes, en una -cadena. + Función idéntica a + <function>file_get_contents</function>, excepto que + <function>stream_get_contents</function> opera en un recurso de + archivo ya abierto y devuelve el contenido restante, hasta un + máximo de <parameter>longitud_maxima</parameter> bytes, en + una cadena. </para> ¬e.bin-safe; <simpara> - Vea también: - <function>fgets</function>, - <function>fread</function>, y - <function>fpassthru</function>. + Vea también <function>fgets</function>, + <function>fread</function>, y <function>fpassthru</function>. </simpara> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/stream/functions/stream-get-filters.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/stream/functions/stream-get-filters.xml diff -u phpdoc-es/reference/stream/functions/stream-get-filters.xml:1.1 phpdoc-es/reference/stream/functions/stream-get-filters.xml:1.2 --- phpdoc-es/reference/stream/functions/stream-get-filters.xml:1.1 Mon Dec 22 01:21:43 2003 +++ phpdoc-es/reference/stream/functions/stream-get-filters.xml Thu Jun 17 23:29:28 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.6 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.7 Maintainer: lboshell Status: ready --> <refentry id="function.stream-get-filters"> <refnamediv> <refname>stream_get_filters</refname> @@ -13,8 +13,8 @@ <void/> </methodsynopsis> <simpara> -Devuelve una matriz indexada que contiene el nombre de todos los -filtros de secuencia disponibles en el sistema actual. + Devuelve una matriz indexada que contiene el nombre de todos los + filtros de secuencia disponibles en el sistema actual. </simpara> <para> <example> @@ -28,8 +28,8 @@ ]]> </programlisting> <para> -La salida será similar a la siguiente. Nota: pueden haber -más o menos filtros en su versión de PHP. + La salida será similar a la siguiente. Nota: pueden + haber más o menos filtros en su versión de PHP. </para> <screen> <![CDATA[ @@ -45,9 +45,8 @@ </example> </para> <para> - Vea también - <function>stream_filter_register</function>, y - <function>stream_get_wrappers</function> + Vea también <function>stream_filter_register</function>, y + <function>stream_get_wrappers</function>. </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/stream/functions/stream-get-line.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/stream/functions/stream-get-line.xml diff -u phpdoc-es/reference/stream/functions/stream-get-line.xml:1.2 phpdoc-es/reference/stream/functions/stream-get-line.xml:1.3 --- phpdoc-es/reference/stream/functions/stream-get-line.xml:1.2 Wed Mar 31 20:03:31 2004 +++ phpdoc-es/reference/stream/functions/stream-get-line.xml Thu Jun 17 23:29:28 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.2 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.3 Maintainer: lboshell Status: ready --> <refentry id="function.stream-get-line"> <refnamediv> <refname>stream_get_line</refname> @@ -39,7 +39,7 @@ Vea también <function>fread</function>, <function>fgets</function>, y - <function>fgetc</function>, + <function>fgetc</function>. </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/stream/functions/stream-get-transports.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/stream/functions/stream-get-transports.xml diff -u phpdoc-es/reference/stream/functions/stream-get-transports.xml:1.1 phpdoc-es/reference/stream/functions/stream-get-transports.xml:1.2 --- phpdoc-es/reference/stream/functions/stream-get-transports.xml:1.1 Mon Dec 22 01:21:43 2003 +++ phpdoc-es/reference/stream/functions/stream-get-transports.xml Thu Jun 17 23:29:28 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 --> <refentry id="function.stream-get-transports"> <refnamediv> <refname>stream_get_transports</refname> @@ -14,8 +14,8 @@ <void/> </methodsynopsis> <simpara> -Devuelve una matriz indexada que contiene los nombres de todos los -transportes de socket disponibles en el sistema actual. + Devuelve una matriz indexada que contiene los nombres de todos + los transportes de socket disponibles en el sistema actual. </simpara> <para> <example> @@ -48,7 +48,7 @@ <para> Vea también <function>stream_get_filters</function>, y - <function>stream_get_wrappers</function> + <function>stream_get_wrappers</function>. </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/stream/functions/stream-get-wrappers.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/stream/functions/stream-get-wrappers.xml diff -u phpdoc-es/reference/stream/functions/stream-get-wrappers.xml:1.1 phpdoc-es/reference/stream/functions/stream-get-wrappers.xml:1.2 --- phpdoc-es/reference/stream/functions/stream-get-wrappers.xml:1.1 Mon Dec 22 01:21:43 2003 +++ phpdoc-es/reference/stream/functions/stream-get-wrappers.xml Thu Jun 17 23:29:28 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.3 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.4 Maintainer: lboshell Status: ready --> <refentry id="function.stream-get-wrappers"> <refnamediv> <refname>stream_get_wrappers</refname> @@ -14,12 +14,12 @@ <void/> </methodsynopsis> <para> -Devuelve una matriz indexada que contiene los nombres de todas las -envolturas de secuencia disponibles en el sistema actual. + Devuelve una matriz indexada que contiene los nombres de todas + las envolturas de secuencia disponibles en el sistema actual. </para> <para> Vea también - <function>stream_wrapper_register</function> + <function>stream_wrapper_register</function>. </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/stream/functions/stream-select.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/stream/functions/stream-select.xml diff -u phpdoc-es/reference/stream/functions/stream-select.xml:1.2 phpdoc-es/reference/stream/functions/stream-select.xml:1.3 --- phpdoc-es/reference/stream/functions/stream-select.xml:1.2 Mon Apr 12 12:09:24 2004 +++ phpdoc-es/reference/stream/functions/stream-select.xml Thu Jun 17 23:29:28 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.8 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.9 Maintainer: lboshell Status: ready --> <refentry id="function.stream-select"> <refnamediv> <refname>stream_select</refname> @@ -192,8 +192,7 @@ </para> </note> <para> - Vea también - <function>stream_set_blocking</function> + Vea también <function>stream_set_blocking</function>. </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/stream/functions/stream-set-timeout.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/stream/functions/stream-set-timeout.xml diff -u phpdoc-es/reference/stream/functions/stream-set-timeout.xml:1.2 phpdoc-es/reference/stream/functions/stream-set-timeout.xml:1.3 --- phpdoc-es/reference/stream/functions/stream-set-timeout.xml:1.2 Mon Apr 5 03:41:47 2004 +++ phpdoc-es/reference/stream/functions/stream-set-timeout.xml Thu Jun 17 23:29:28 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.6 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.7 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/network.xml, last change in rev 1.18 --> <refentry id="function.stream-set-timeout"> <refnamediv> @@ -59,8 +59,8 @@ nombres se considera obsoleto. </para> <para> - Vea también: - <function>fsockopen</function> y <function>fopen</function>. + Vea también <function>fsockopen</function> y + <function>fopen</function>. </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/stream/functions/stream-set-write-buffer.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/stream/functions/stream-set-write-buffer.xml diff -u phpdoc-es/reference/stream/functions/stream-set-write-buffer.xml:1.2 phpdoc-es/reference/stream/functions/stream-set-write-buffer.xml:1.3 --- phpdoc-es/reference/stream/functions/stream-set-write-buffer.xml:1.2 Mon Apr 5 03:41:47 2004 +++ phpdoc-es/reference/stream/functions/stream-set-write-buffer.xml Thu Jun 17 23:29:28 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/filesystem.xml, last change in rev 1.2 --> <refentry id="function.stream-set-write-buffer"> <refnamediv> @@ -58,8 +58,8 @@ </para> <simpara> - Vea también - <function>fopen</function> y <function>fwrite</function>. + Vea también <function>fopen</function> y + <function>fwrite</function>. </simpara> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/stream/functions/stream-socket-client.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-es/reference/stream/functions/stream-socket-client.xml diff -u phpdoc-es/reference/stream/functions/stream-socket-client.xml:1.4 phpdoc-es/reference/stream/functions/stream-socket-client.xml:1.5 --- phpdoc-es/reference/stream/functions/stream-socket-client.xml:1.4 Mon Apr 12 12:09:24 2004 +++ phpdoc-es/reference/stream/functions/stream-socket-client.xml Thu Jun 17 23:29:28 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.10 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.11 Maintainer: lboshell Status: ready --> <refentry id="function.stream-socket-client"> <refnamediv> <refname>stream_socket_client</refname> @@ -113,8 +113,8 @@ hora desde el servicio UDP "daytime" (puerto 13) en su máquina local. <example> - <title>Uso de una conexión UDP</title> - <programlisting role="php"> + <title>Uso de una conexión UDP</title> + <programlisting role="php"> <![CDATA[ <?php $da = stream_socket_client("udp://127.0.0.1:13", $errno, $errstr); @@ -127,7 +127,7 @@ } ?> ]]> - </programlisting> + </programlisting> </example> <warning> <simpara> @@ -141,7 +141,9 @@ datos. </simpara> </warning> - &ipv6.brackets; + </para> + &ipv6.brackets; + <para> Vea también <function>stream_socket_server</function>, <function>stream_set_blocking</function>, <function>stream_set_timeout</function>, http://cvs.php.net/diff.php/phpdoc-es/reference/stream/functions/stream-socket-get-name.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/stream/functions/stream-socket-get-name.xml diff -u phpdoc-es/reference/stream/functions/stream-socket-get-name.xml:1.1 phpdoc-es/reference/stream/functions/stream-socket-get-name.xml:1.2 --- phpdoc-es/reference/stream/functions/stream-socket-get-name.xml:1.1 Sun Dec 28 00:19:27 2003 +++ phpdoc-es/reference/stream/functions/stream-socket-get-name.xml Thu Jun 17 23:29:28 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 --> <refentry id="function.stream-socket-get-name"> <refnamediv> <refname>stream_socket_get_name</refname> @@ -15,15 +15,14 @@ <methodparam><type>bool</type><parameter>desea_nombre_del_par</parameter></methodparam> </methodsynopsis> <para> -Devuelve el nombre local o remoto de una conexión de socket -dada. Si -<parameter>desea_nombre_del_par</parameter> es definido como &true;, el -nombre de socket remoto será devuelto, si es definido como -&false;, se devolverá el nombre de socket local. + Devuelve el nombre local o remoto de una conexión de + socket dada. Si <parameter>desea_nombre_del_par</parameter> es + definido como &true;, el nombre de socket remoto será + devuelto, si es definido como &false;, se devolverá el + nombre de socket local. </para> <para> - Vea también - <function>stream_socket_accept</function> + Vea también <function>stream_socket_accept</function>. </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/stream/functions/stream-socket-server.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-es/reference/stream/functions/stream-socket-server.xml diff -u phpdoc-es/reference/stream/functions/stream-socket-server.xml:1.5 phpdoc-es/reference/stream/functions/stream-socket-server.xml:1.6 --- phpdoc-es/reference/stream/functions/stream-socket-server.xml:1.5 Mon Apr 5 03:41:47 2004 +++ phpdoc-es/reference/stream/functions/stream-socket-server.xml Thu Jun 17 23:29:28 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.14 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.15 Maintainer: lboshell Status: ready --> <refentry id="function.stream-socket-server"> <refnamediv> <refname>stream_socket_server</refname> @@ -87,21 +87,21 @@ ]]> </programlisting> </example> - </para> - <para> - El siguiente ejemplo muestra como actuar como servidor de hora, - el cual puede responder a consultas sobre la hora actual, tal y - como se muestra en un ejemplo ubicado en la página - sobre <function>stream_socket_client</function>. - <note> - <simpara> - La mayoría de sistemas requieren acceso de root para - crear un socket de servidor en un puerto menor a 1024. - </simpara> - </note> + </para> + <para> + El siguiente ejemplo muestra como actuar como servidor de hora, + el cual puede responder a consultas sobre la hora actual, tal y + como se muestra en un ejemplo ubicado en la página sobre + <function>stream_socket_client</function>. + <note> + <simpara> + La mayoría de sistemas requieren acceso de root para + crear un socket de servidor en un puerto menor a 1024. + </simpara> + </note> <example> - <title>Uso de sockets de servidor UDP</title> - <programlisting role="php"> + <title>Uso de sockets de servidor UDP</title> + <programlisting role="php"> <![CDATA[ <?php $socket = stream_socket_server("udp://0.0.0.0:13", $errno, $errstr, STREAM_SERVER_BIND); @@ -116,19 +116,18 @@ } ?> ]]> - </programlisting> + </programlisting> </example> - </para> - &ipv6.brackets; - <para> - Vea también - <function>stream_socket_client</function>, - <function>stream_set_blocking</function>, - <function>stream_set_timeout</function>, - <function>fgets</function>, - <function>fgetss</function>, <function>fwrite</function>, - <function>fclose</function>, <function>feof</function>, y - la <link linkend="ref.curl">extensión Curl</link>. + </para> + &ipv6.brackets; + <para> + Vea también <function>stream_socket_client</function>, + <function>stream_set_blocking</function>, + <function>stream_set_timeout</function>, + <function>fgets</function>, <function>fgetss</function>, + <function>fwrite</function>, <function>fclose</function>, + <function>feof</function>, y la <link + linkend="ref.curl">extensión Curl</link>. </para> </refsect1> </refentry> http://cvs.php.net/co.php/phpdoc-es/reference/domxml/functions/DomNode-attributes.xml?r=1.1&p=1 Index: phpdoc-es/reference/domxml/functions/DomNode-attributes.xml +++ phpdoc-es/reference/domxml/functions/DomNode-attributes.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.domnode-attributes'> <refnamediv> <refname>DomNode->attributes</refname> <refpurpose> Devuelve la lista de atributos </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>array</type><methodname>DomNode->attributes</methodname> <void/> </methodsynopsis> <para> Esta función solo devuelve una matriz de atributos si el nodo es de tipo XML_ELEMENT_NODE. </para> <para> (Sólo PHP >= 4.3) Si no se encuentran atributos, se devuelve NULL. </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/DomNode-child-nodes.xml?r=1.1&p=1 Index: phpdoc-es/reference/domxml/functions/DomNode-child-nodes.xml +++ phpdoc-es/reference/domxml/functions/DomNode-child-nodes.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.domnode-child-nodes'> <refnamediv> <refname>DomNode->child_nodes</refname> <refpurpose> Devuelve los hijos del nodo </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>array</type><methodname>DomNode->child_nodes</methodname> <void/> </methodsynopsis> <para> Devuelve todos los hijos del nodo. </para> <para> Vea también <function>domnode_next_sibling</function>, y <function>domnode_previous_sibling</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/DomNode-clone-node.xml?r=1.1&p=1 Index: phpdoc-es/reference/domxml/functions/DomNode-clone-node.xml +++ phpdoc-es/reference/domxml/functions/DomNode-clone-node.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.39 --> <refentry id='function.domnode-clone-node'> <refnamediv> <refname>DomNode->clone_node</refname> <refpurpose> Clona un nodo </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>object</type><methodname>DomNode->clone_node</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/co.php/phpdoc-es/reference/domxml/functions/DomNode-dump-node.xml?r=1.1&p=1 Index: phpdoc-es/reference/domxml/functions/DomNode-dump-node.xml +++ phpdoc-es/reference/domxml/functions/DomNode-dump-node.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.39 --> <refentry id='function.domnode-dump-node'> <refnamediv> <refname>DomNode->dump_node</refname> <refpurpose> Vuelca un nodo único </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>string</type><methodname>DomNode->dump_node</methodname> <void/> </methodsynopsis> <para> &warn.undocumented.func; </para> <para> Vea también <function>domdocument_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/DomNode-first-child.xml?r=1.1&p=1 Index: phpdoc-es/reference/domxml/functions/DomNode-first-child.xml +++ phpdoc-es/reference/domxml/functions/DomNode-first-child.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.domnode-first-child'> <refnamediv> <refname>DomNode->first_child</refname> <refpurpose> Devuelve el primer hijo del nodo </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>object</type><methodname>DomNode->first_child</methodname> <void/> </methodsynopsis> <para> Devuelve el primer hijo del nodo. </para> <para> (Sólo PHP >= 4.3) Si no se encuentra un hijo, se devuelve NULL. </para> <para> Vea también <function>domnode_last_child</function>, y <function>domnode_next_sibling</function>, <function>domnode_previous_sibling</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/DomNode-get-content.xml?r=1.1&p=1 Index: phpdoc-es/reference/domxml/functions/DomNode-get-content.xml +++ phpdoc-es/reference/domxml/functions/DomNode-get-content.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.39 --> <refentry id='function.domnode-get-content'> <refnamediv> <refname>DomNode->get_content</refname> <refpurpose> Obtiene el contenido del nodo </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>string</type><methodname>DomNode->get_content</methodname> <void/> </methodsynopsis> <para> Esta función devuelve el contenido del nodo mismo. </para> <para> <example> <title>Obtener el contenido</title> <programlisting role="php"> <![CDATA[ <?php if (!$dom = domxml_open_mem($codena_xml)) { echo "Ocurrió un error al analizar el documento\n"; exit; } $raiz = $dom->document_element(); $matriz_nodos = $raiz->get_elements_by_tagname("element"); for ($i = 0; $i<count($matriz_nodos); $i++) { $nodo = $matriz_nodos[$i]; echo "El elemento[$i] is: " . $nodo->get_content(); } ?> ]]> </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/DomNode-has-attributes.xml?r=1.1&p=1 Index: phpdoc-es/reference/domxml/functions/DomNode-has-attributes.xml +++ phpdoc-es/reference/domxml/functions/DomNode-has-attributes.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.domnode-has-attributes'> <refnamediv> <refname>DomNode->has_attributes</refname> <refpurpose> Verifica si un nodo tiene atributos </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>bool</type><methodname>DomNode->has_attributes</methodname> <void/> </methodsynopsis> <para> Esta función verifica si el nodo tiene atributos. </para> <para> Vea también <function>domnode_has_child_nodes</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/DomNode-has-child-nodes.xml?r=1.1&p=1 Index: phpdoc-es/reference/domxml/functions/DomNode-has-child-nodes.xml +++ phpdoc-es/reference/domxml/functions/DomNode-has-child-nodes.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.domnode-has-child-nodes'> <refnamediv> <refname>DomNode->has_child_nodes</refname> <refpurpose> Verifica si el nodo tiene hijos </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>bool</type><methodname>DomNode->has_child_nodes</methodname> <void/> </methodsynopsis> <para> Esta función verifica si el nodo tiene hijos. </para> <para> Vea también <function>domnode_child_nodes</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/DomNode-insert-before.xml?r=1.1&p=1 Index: phpdoc-es/reference/domxml/functions/DomNode-insert-before.xml +++ phpdoc-es/reference/domxml/functions/DomNode-insert-before.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.8 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 --> <refentry id='function.domnode-insert-before'> <refnamediv> <refname>DomNode->insert_before</refname> <refpurpose> Inserta un nodo nuevo como hijo </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>object</type><methodname>DomNode->insert_before</methodname> <methodparam><type>object</type><parameter>nodo_nuevo</parameter></methodparam> <methodparam><type>object</type><parameter>nodo_ref</parameter></methodparam> </methodsynopsis> <para> Esta función inserta el nuevo nodo, <parameter>nodo_nuevo</parameter>, justo antes del nodo <parameter>nodo_ref</parameter>. El valor de retorno es el nodo insertado. Si planea hacer modificaciones posteriores sobre el hijo agregado, debe usar el nodo devuelto. </para> <para> (Sólo PHP >= 4.3) Si <parameter>nodo_nuevo</parameter> ya es parte de un documento, será primero desenlazado de su contexto actual. Si <parameter>nodo_ref</parameter> es NULL, entonces <parameter>nodo_nuevo</parameter> será insertado al final de la lista de hijos. </para> <para> <function>domnode_insert_before</function> es bastante similar a <function>domnode_append_child</function> como muestra el siguiente ejemplo, el cual hace lo mismo que el ejemplo en <function>domnode_append_child</function>. </para> <para> <example> <title>Agregar un hijo</title> <programlisting role="php"> <![CDATA[ <?php include("ejemplo.inc"); if (!$dom = domxml_open_mem($cadena_xml)) { echo "Ocurrió un error al analizar el documento\n"; exit; } $elementos = $dom->get_elements_by_tagname("informaltable"); print_r($elementos); $elemento = $elementos[0]; $nodo_nuevo = $elemento->insert_before($elemento, $elemento); $hijos = $nodo_nuevo->children(); $atr = $hijos[1]->set_attribute("align", "left"); echo "<pre>"; $archivo_xml = $dom->dump_mem(); echo htmlentities($archivo_xml); echo "</pre>"; ?> ]]> </programlisting> </example> </para> <para> Vea también <function>domnode_append_child</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/DomNode-is-blank-node.xml?r=1.1&p=1 Index: phpdoc-es/reference/domxml/functions/DomNode-is-blank-node.xml +++ phpdoc-es/reference/domxml/functions/DomNode-is-blank-node.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.39 --> <refentry id='function.domnode-is-blank-node'> <refnamediv> <refname>DomNode->is_blank_node</refname> <refpurpose> Verifica si el nodo está en blanco </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>bool</type><methodname>DomNode->is_blank_node</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/co.php/phpdoc-es/reference/domxml/functions/DomNode-last-child.xml?r=1.1&p=1 Index: phpdoc-es/reference/domxml/functions/DomNode-last-child.xml +++ phpdoc-es/reference/domxml/functions/DomNode-last-child.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.domnode-last-child'> <refnamediv> <refname>DomNode->last_child</refname> <refpurpose> Devuelve el último hijo del nodo </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>object</type><methodname>DomNode->last_child</methodname> <void/> </methodsynopsis> <para> Devuelve el último hijo del nodo. </para> <para> (Sólo PHP >= 4.3) Si no se encuentra un último hijo, se devuelve NULL. </para> <para> Vea también <function>domnode_first_child</function>, y <function>domnode_next_sibling</function>, <function>domnode_previous_sibling</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/DomNode-next-sibling.xml?r=1.1&p=1 Index: phpdoc-es/reference/domxml/functions/DomNode-next-sibling.xml +++ phpdoc-es/reference/domxml/functions/DomNode-next-sibling.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.domnode-next-sibling'> <refnamediv> <refname>DomNode->next_sibling</refname> <refpurpose> Devuelve el siguiente hermano del nodo </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>object</type><methodname>DomNode->next_sibling</methodname> <void/> </methodsynopsis> <para> Esta función devuelve el siguiente hermano del nodo actual. Si no hay un siguiente hermano, devuelve &false; (< 4.3) o null (>= 4.3). Es posible usar esta función para iterar sobre los hijos de un nodo, como se muestra en el ejemplo a continuación. </para> <para> <example> <title>Iterar sobre los hijos</title> <programlisting role="php"> <![CDATA[ <?php include("ejemplo.inc"); if (!$dom = domxml_open_mem($cadena_xml)) { echo "Ocurrió un error al analizar el documento\n"; exit; } $elementos = $dom->get_elements_by_tagname("tbody"); $elemento = $elementos[0]; $hijo = $elemento->first_child(); while ($hijo) { print_r($hijo); $hijo = $hijo->next_sibling(); } ?> ]]> </programlisting> </example> </para> <para> Vea también <function>domnode_previous_sibling</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/DomNode-node-name.xml?r=1.1&p=1 Index: phpdoc-es/reference/domxml/functions/DomNode-node-name.xml +++ phpdoc-es/reference/domxml/functions/DomNode-node-name.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.domnode-node-name'> <refnamediv> <refname>DomNode->node_name</refname> <refpurpose> Devuelve el nombre del nodo </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>string</type><methodname>DomNode->node_name</methodname> <void/> </methodsynopsis> <para> Devuelve el nombre del nodo. El nombre tiene significados diferentes para los diferentes tipos de nodo, como se ilustra en la siguiente tabla. <table> <title>Significado de valores</title> <tgroup cols="2"> <thead> <row> <entry>Tipo</entry> <entry>Significado</entry> </row> </thead> <tbody> <row> <entry>DomAttribute</entry> <entry>valor del atributo</entry> </row> <row> <entry>DomAttribute</entry> <entry></entry> </row> <row> <entry>DomCDataSection</entry> <entry>sección-#cdata</entry> </row> <row> <entry>DomComment</entry> <entry>#comment</entry> </row> <row> <entry>DomDocument</entry> <entry>#document</entry> </row> <row> <entry>DomDocumentType</entry> <entry>nombre del tipo de documento</entry> </row> <row> <entry>DomElement</entry> <entry>nombre de la etiqueta</entry> </row> <row> <entry>DomEntity</entry> <entry>nombre de la entidad</entry> </row> <row> <entry>DomEntityReference</entry> <entry>nombre de referencia a entidad</entry> </row> <row> <entry>DomNotation</entry> <entry>nombre de notación</entry> </row> <row> <entry>DomProcessingInstruction</entry> <entry>destino</entry> </row> <row> <entry>DomText</entry> <entry>#text</entry> </row> </tbody> </tgroup> </table> </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/DomNode-node-type.xml?r=1.1&p=1 Index: phpdoc-es/reference/domxml/functions/DomNode-node-type.xml +++ phpdoc-es/reference/domxml/functions/DomNode-node-type.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.domnode-node-type'> <refnamediv> <refname>DomNode->node_type</refname> <refpurpose> Devuelve el tipo de nodo </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>int</type><methodname>DomNode->node_type</methodname> <void/> </methodsynopsis> <para> Devuelve el tipo del nodo. Todos los tipos posibles son listados en la tabla de la introducción. </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/DomNode-node-value.xml?r=1.1&p=1 Index: phpdoc-es/reference/domxml/functions/DomNode-node-value.xml +++ phpdoc-es/reference/domxml/functions/DomNode-node-value.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.domnode-node-value'> <refnamediv> <refname>DomNode->node_value</refname> <refpurpose> Devuelve el valor de un nodo </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>string</type><methodname>DomNode->node_value</methodname> <void/> </methodsynopsis> <para> Devuelve el valor del nodo. El valor tiene significados diferentes para los diferentes tipos de nodos, como se ilustra en la siguiente tabla. <table> <title>Significado de valores</title> <tgroup cols="2"> <thead> <row> <entry>Tipo</entry> <entry>Significado</entry> </row> </thead> <tbody> <row> <entry>DomAttribute</entry> <entry>valor del atributo</entry> </row> <row> <entry>DomAttribute</entry> <entry></entry> </row> <row> <entry>DomCDataSection</entry> <entry>contenido</entry> </row> <row> <entry>DomComment</entry> <entry>contenido del comentario</entry> </row> <row> <entry>DomDocument</entry> <entry>null</entry> </row> <row> <entry>DomDocumentType</entry> <entry>null</entry> </row> <row> <entry>DomElement</entry> <entry>null</entry> </row> <row> <entry>DomEntity</entry> <entry>null</entry> </row> <row> <entry>DomEntityReference</entry> <entry>null</entry> </row> <row> <entry>DomNotation</entry> <entry>null</entry> </row> <row> <entry>DomProcessingInstruction</entry> <entry>contenido completo sin destino</entry> </row> <row> <entry>DomText</entry> <entry>contenido del texto</entry> </row> </tbody> </tgroup> </table> </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 -->