cvs: phpdoc-es / translation.xml /reference/array/functions array-search.xml /reference/exec/functions shell-exec.xml /reference/info/functions
dl.xml /reference/mime_magic configure.xml /reference/outcontrol ini.xml reference.xml /reference/outcontrol/functions ob-clean.xml ob-flush.xml
ob-get-clean.xml ob-get-level.xml ob-get-status.xml ob-gzhandler.xml
| From: | Leonardo Boshell | Date: | Wed, 17 Dec 2003 03:09:08 +0000 |
| Subject: | cvs: phpdoc-es / translation.xml /reference/array/functions array-search.xml /reference/exec/functions shell-exec.xml /reference/info/functions dl.xml /reference/mime_magic configure.xml /reference/outcontrol ini.xml reference.xml /reference/outcontrol/functions ob-clean.xml ob-flush.xml ob-get-clean.xml ob-get-level.xml ob-get-status.xml ob-gzhandler.xml |
||
| Groups: | php.doc.es | ||
| Request: | Send a blank email to doc-es+get-446@lists.php.net to get a copy of this message | ||
lboshell Tue Dec 16 22:09:08 2003 EDT
Added files:
/phpdoc-es/reference/outcontrol ini.xml
/phpdoc-es/reference/outcontrol/functions ob-clean.xml ob-flush.xml
ob-get-clean.xml
ob-get-level.xml
ob-get-status.xml
ob-gzhandler.xml
Modified files:
/phpdoc-es translation.xml
/phpdoc-es/reference/array/functions array-search.xml
/phpdoc-es/reference/exec/functions shell-exec.xml
/phpdoc-es/reference/info/functions dl.xml
/phpdoc-es/reference/mime_magic configure.xml
/phpdoc-es/reference/outcontrol reference.xml
Log:
Nuevos archivos de reference/outcontrol. Actualizaciones. Asignacion de nuevo trabajo.
Index: phpdoc-es/translation.xml diff -u phpdoc-es/translation.xml:1.103 phpdoc-es/translation.xml:1.104 --- phpdoc-es/translation.xml:1.103 Mon Dec 15 22:09:37 2003 +++ phpdoc-es/translation.xml Tue Dec 16 22:09:03 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.103 $ --> +<!-- $Revision: 1.104 $ --> <!DOCTYPE translation SYSTEM "../entities/translation.dtd"> <translation> @@ -45,13 +45,33 @@ <file name="reference/errorfunc/functions/set-error-handler.xml" person="javi" type="translation" date="01.12.2003"/> <file name="reference/errorfunc/functions/trigger-error.xml" person="javi" type="translation" date="01.12.2003"/> <file name="reference/errorfunc/functions/user-error.xml" person="javi" type="translation" date="01.12.2003"/> -<file name="reference/outcontrol/ini.xml" person="lboshell" type="translation" date="15.12.2003"/> -<file name="reference/outcontrol/reference.xml" person="lboshell" type="review" date="15.12.2003"/> -<file name="reference/outcontrol/functions/ob-clean.xml" person="lboshell" type="translation" date="15.12.2003"/> -<file name="reference/outcontrol/functions/ob-flush.xml" person="lboshell" type="translation" date="15.12.2003"/> -<file name="reference/outcontrol/functions/ob-get-clean.xml" person="lboshell" type="translation" date="15.12.2003"/> -<file name="reference/outcontrol/functions/ob-get-level.xml" person="lboshell" type="translation" date="15.12.2003"/> -<file name="reference/outcontrol/functions/ob-get-status.xml" person="lboshell" type="translation" date="15.12.2003"/> -<file name="reference/outcontrol/functions/ob-gzhandler.xml" person="lboshell" type="translation" date="15.12.2003"/> +<file name="reference/stream/constants.xml" person="lboshell" type="translation" date="16.12.2003"/> +<file name="reference/stream/reference.xml" person="lboshell" type="translation" date="16.12.2003"/> +<file name="reference/stream/functions/stream-context-create.xml" person="lboshell" type="translation" date="16.12.2003"/> +<file name="reference/stream/functions/stream-context-get-options.xml" person="lboshell" type="translation" date="16.12.2003"/> +<file name="reference/stream/functions/stream-context-set-option.xml" person="lboshell" type="translation" date="16.12.2003"/> +<file name="reference/stream/functions/stream-context-set-params.xml" person="lboshell" type="translation" date="16.12.2003"/> +<file name="reference/stream/functions/stream-copy-to-stream.xml" person="lboshell" type="translation" date="16.12.2003"/> +<file name="reference/stream/functions/stream-filter-append.xml" person="lboshell" type="translation" date="16.12.2003"/> +<file name="reference/stream/functions/stream-filter-prepend.xml" person="lboshell" type="translation" date="16.12.2003"/> +<file name="reference/stream/functions/stream-filter-register.xml" person="lboshell" type="translation" date="16.12.2003"/> +<file name="reference/stream/functions/stream-get-contents.xml" person="lboshell" type="translation" date="16.12.2003"/> +<file name="reference/stream/functions/stream-get-filters.xml" person="lboshell" type="translation" date="16.12.2003"/> +<file name="reference/stream/functions/stream-get-line.xml" person="lboshell" type="translation" date="16.12.2003"/> +<file name="reference/stream/functions/stream-get-meta-data.xml" person="lboshell" type="translation" date="16.12.2003"/> +<file name="reference/stream/functions/stream-get-transports.xml" person="lboshell" type="translation" date="16.12.2003"/> +<file name="reference/stream/functions/stream-get-wrappers.xml" person="lboshell" type="translation" date="16.12.2003"/> +<file name="reference/stream/functions/stream-register-wrapper.xml" person="lboshell" type="translation" date="16.12.2003"/> +<file name="reference/stream/functions/stream-select.xml" person="lboshell" type="translation" date="16.12.2003"/> +<file name="reference/stream/functions/stream-set-blocking.xml" person="lboshell" type="translation" date="16.12.2003"/> +<file name="reference/stream/functions/stream-set-timeout.xml" person="lboshell" type="translation" date="16.12.2003"/> +<file name="reference/stream/functions/stream-set-write-buffer.xml" person="lboshell" type="translation" date="16.12.2003"/> +<file name="reference/stream/functions/stream-socket-accept.xml" person="lboshell" type="translation" date="16.12.2003"/> +<file name="reference/stream/functions/stream-socket-client.xml" person="lboshell" type="translation" date="16.12.2003"/> +<file name="reference/stream/functions/stream-socket-get-name.xml" person="lboshell" type="translation" date="16.12.2003"/> +<file name="reference/stream/functions/stream-socket-recvfrom.xml" person="lboshell" type="translation" date="16.12.2003"/> +<file name="reference/stream/functions/stream-socket-sendto.xml" person="lboshell" type="translation" date="16.12.2003"/> +<file name="reference/stream/functions/stream-socket-server.xml" person="lboshell" type="translation" date="16.12.2003"/> +<file name="reference/stream/functions/stream-wrapper-register.xml" person="lboshell" type="translation" date="16.12.2003"/> </work-in-progress> </translation> Index: phpdoc-es/reference/array/functions/array-search.xml diff -u phpdoc-es/reference/array/functions/array-search.xml:1.2 phpdoc-es/reference/array/functions/array-search.xml:1.3 --- phpdoc-es/reference/array/functions/array-search.xml:1.2 Mon Dec 15 22:09:46 2003 +++ phpdoc-es/reference/array/functions/array-search.xml Tue Dec 16 22:09:04 2003 @@ -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/array.xml, last change in rev 1.2 --> <refentry id="function.array-search"> <refnamediv> @@ -62,8 +62,8 @@ <?php $matriz = array(0 => "blue", 1 => "red", 2 => "green", 3 => "red"); -$clave = array_search($matriz, "green")); // $clave = 2; -$clave = array_search($matriz, "red")); // $clave = 1; +$clave = array_search($matriz, "green"); // $clave = 2; +$clave = array_search($matriz, "red"); // $clave = 1; ?> ]]> </programlisting> Index: phpdoc-es/reference/exec/functions/shell-exec.xml diff -u phpdoc-es/reference/exec/functions/shell-exec.xml:1.1 phpdoc-es/reference/exec/functions/shell-exec.xml:1.2 --- phpdoc-es/reference/exec/functions/shell-exec.xml:1.1 Tue Nov 11 01:05:35 2003 +++ phpdoc-es/reference/exec/functions/shell-exec.xml Tue Dec 16 22:09:05 2003 @@ -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 --> <!-- splitted from ./en/functions/exec.xml, last change in rev 1.2 --> <refentry id='function.shell-exec'> <refnamediv> @@ -21,6 +21,7 @@ linkend="language.operators.execution">operador de comillas invertidas</link>. </para> + ¬e.sm.disabled; </refsect1> </refentry> Index: phpdoc-es/reference/info/functions/dl.xml diff -u phpdoc-es/reference/info/functions/dl.xml:1.1 phpdoc-es/reference/info/functions/dl.xml:1.2 --- phpdoc-es/reference/info/functions/dl.xml:1.1 Mon Dec 1 20:52:28 2003 +++ phpdoc-es/reference/info/functions/dl.xml Tue Dec 16 22:09:05 2003 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.13 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.14 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/info.xml, last change in rev 1.29 --> <refentry id="function.dl"> <refnamediv> @@ -124,6 +124,7 @@ minúsculas en plataformas Unix. </para> </note> + ¬e.sm.disabled; <para> Vea también <link linkend="ini.extension">Directivas de Carga de Extensión</link> y <function>extension_loaded</function>. Index: phpdoc-es/reference/mime_magic/configure.xml diff -u phpdoc-es/reference/mime_magic/configure.xml:1.1 phpdoc-es/reference/mime_magic/configure.xml:1.2 --- phpdoc-es/reference/mime_magic/configure.xml:1.1 Thu Dec 11 19:17:02 2003 +++ phpdoc-es/reference/mime_magic/configure.xml Tue Dec 16 22:09:06 2003 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.5 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.8 Maintainer: lboshell Status: ready --> <section id="mime-magic.installation"> &reftitle.install; <para> @@ -33,15 +33,19 @@ Para usar este módulo en un entorno Windows, debe definir la ruta hacia el archivo <filename>magic.mime</filename> distribuido en su &php.ini;. + </para> + <para> <example> <title>Definición de la ruta hacia <filename>magic.mime</filename></title> <programlisting> - <![CDATA[ - mime_magic.magicfile ="$PHP_INSTALL_DIR\magic.mime" - ]]> +<![CDATA[ +mime_magic.magicfile ="$PHP_INSTALL_DIR\magic.mime" +]]> </programlisting> </example> + </para> + <para> Recuerde sustituir el valor <filename>$PHP_INSTALL_DIR</filename> con su ruta real hacia <literal>PHP</literal> en el anterior ejemplo. Por ejemplo, <filename>c:\php</filename> Index: phpdoc-es/reference/outcontrol/reference.xml diff -u phpdoc-es/reference/outcontrol/reference.xml:1.2 phpdoc-es/reference/outcontrol/reference.xml:1.3 --- phpdoc-es/reference/outcontrol/reference.xml:1.2 Mon Apr 15 20:33:09 2002 +++ phpdoc-es/reference/outcontrol/reference.xml Tue Dec 16 22:09:07 2003 @@ -1,48 +1,97 @@ <?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.11 Maintainer: lboshell Status: ready --> <reference id="ref.outcontrol"> - <title>Output Control Functions</title> - <titleabbrev>Output Control</titleabbrev> + <title>Funciones de Control de Salida</title> + <titleabbrev>Control de Salida</titleabbrev> <partintro> - <para> - The Output Control functions allow you to control when output is - sent from the script. This can be useful in several different - situations, especially if you need to send headers to the browser - after your script has began outputing data. The Output Control - functions do not affect headers sent using - <function>header</function> or <function>setcookie</function>, - only functions such as <function>echo</function> and data between - blocks of PHP code. - </para> - <para> - <example> - <title>Output Control example</title> - <programlisting role="php"> -<?php + <section id="outcontrol.intro"> + &reftitle.intro; + <para> +Las funciones de Control de Salida le permiten controlar cuándo +es enviada la salida desde el script. Esto puede resultar útil +en muchas situaciones diferentes, especialmente si necesita enviar +cabeceras al navegador después de que su script ha comenzado a +enviar datos. Las funciones de Control de Salida no afectan las +cabeceras enviadas usando <function>header</function> +o <function>setcookie</function>, sólo funciones +como <function>echo</function> y los datos entre bloques de +código PHP. + </para> + </section> + + <section id="outcontrol.requirements"> + &reftitle.required; + &no.requirement; + </section> + + <section id="outcontrol.installation"> + &reftitle.install; + &no.install; + </section> + + &reference.outcontrol.ini; + + <section id="outcontrol.resources"> + &reftitle.resources; + &no.resource; + </section> + + <section id="outcontrol.constants"> + &reftitle.constants; + &no.constants; + </section> + + <section id="outcontrol.examples"> + &reftitle.examples; + <para> + <example> + <title>Ejemplo de Control de Salida</title> + <programlisting role="php"> +<![CDATA[ +<?php ob_start(); -echo "Hello\n"; +echo "Hola\n"; -setcookie ("cookiename", "cookiedata"); +setcookie("nombre_cookie", "datos_cookie"); ob_end_flush(); -?> - </programlisting> - </example> - </para> - <para> - In the above example, the output from <function>echo</function> - would be stored in the output buffer until - <function>ob_end_flush</function> was called. In the mean time, - the call to <function>setcookie</function> successfully stored a - cookie without causing an error. (You can not normally send - headers to the browser after data has already been sent.) - </para> - <para> - See also <function>header</function> and - <function>setcookie</function>. - </para> +?> +]]> + </programlisting> + </example> + </para> + <para> +En el anterior ejemplo, la salida de <function>echo</function> +sería almacenada en el búfer de salida hasta +que <function>ob_end_flush</function> sea llamada. Entre tanto, la +llamada a <function>setcookie</function> almacena satisfactoriamente +una cookie sin causar un error. (Normalmente, usted no puede enviar +cabeceras al navegador después de que se han enviado datos.) + </para> + <note> + <para> +Cuando se actualice desde PHP 4.1 (y 4.2) hacia 4.3, debe asegurarse +de que <literal>implict_flush</literal> tenga el +valor <literal>OFF</literal> en su &php.ini; debido a un fallo en +versiones antiguas, de otra forma, cualquier salida procesada +por <function>ob_start</function> no se ocultará de la salida +final. + </para> + </note> + </section> + + <section id="outcontrol.seealso"> + &reftitle.seealso; + <para> + Vea también + <function>header</function> y + <function>setcookie</function>. + </para> + </section> </partintro> &reference.outcontrol.functions; @@ -64,5 +113,8 @@ sgml-local-catalogs:nil sgml-local-ecat-files:nil End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 --> Index: phpdoc-es/reference/outcontrol/ini.xml +++ phpdoc-es/reference/outcontrol/ini.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: lboshell Status: ready --> <section id="outcontrol.configuration"> &reftitle.runtime; &extension.runtime; <para> <table> <title>Opciones de configuración del Control de Salida</title> <tgroup cols="3"> <thead> <row> <entry>Nombre</entry> <entry>Predeterminado</entry> <entry>Modificable</entry> </row> </thead> <tbody> <row> <entry>output_buffering</entry> <entry>"0"</entry> <entry>PHP_INI_PERDIR|PHP_INI_SYSTEM</entry> </row> <row> <entry>output_handler</entry> <entry>NULL</entry> <entry>PHP_INI_PERDIR|PHP_INI_SYSTEM</entry> </row> <row> <entry>implicit_flush</entry> <entry>"0"</entry> <entry>PHP_INI_PERDIR|PHP_INI_SYSTEM</entry> </row> </tbody> </tgroup> </table> Para más detalles sobre las constantes PHP_INI_* y su definición, vea <function>ini_set</function>. </para> &ini.descriptions.title; <para> <variablelist> <varlistentry id="ini.output-buffering"> <term> <parameter>output_buffering</parameter> <type>boolean</type>/<type>integer</type> </term> <listitem> <para> Puede habilitar el uso de búferes de salida para todos los archivos, definiendo esta directiva como 'On'. Si desea limitar el tamaño del búfer a cierta cantidad - puede usar un número máximo de bytes, en lugar de 'On', como valor para esta directiva (p.ej., output_buffering=4096). </para> </listitem> </varlistentry> <varlistentry id="ini.output-handler"> <term> <parameter>output_handler</parameter> <type>string</type> </term> <listitem> <para> Puede redireccionar toda la salida de sus scripts a una función. Por ejemplo, si establece el valor de output_handler a <function>mb_output_handler</function>, la codificación de caracteres será convertida de forma transparente a la codificación especificada. Al definir cualquier gestor de salida, el control mediante búferes se activa automáticamente. </para> <note> <para> Usted no puede usar <function>mb_output_handler</function> con <function>ob_inconv_handler</function> al tiempo, y no puede usar <function>ob_gzhandler</function> y <link linkend="ini.zlib.output-compression">zlib.output_compression</link> al tiempo. </para> </note> </listitem> </varlistentry> <varlistentry id="ini.implicit-flush"> <term> <parameter>implicit_flush</parameter> <type>boolean</type> </term> <listitem> <para> &false; por defecto. Cambiar este valor a &true; le indica a PHP que debe decirle a la capa de salida que se vacíe automáticamente después de cada bloque de salida. Esto es equivalente a llamar la función de <literal>PHP</literal> <function>flush</function> después de todas y cada una de las llamadas a <function>print</function> o <function>echo</function>, y cada bloque <literal>HTML</literal>. </para> <para> Cuando use <literal>PHP</literal> bajo un entorno web, el habilitar esta opción tiene unas implicaciones serias en el rendimiento, y por lo general se recomienda su uso únicamente para propósitos de depuración. Este valor es igual a &true; por defecto cuando se opera bajo la <literal>SAPI CLI</literal>. </para> <para> Vea también <function>ob_implicit_flush</function>. </para> </listitem> </varlistentry> </variablelist> </para> </section> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-es/reference/outcontrol/functions/ob-clean.xml +++ phpdoc-es/reference/outcontrol/functions/ob-clean.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/outcontrol.xml, last change in rev 1.20 --> <refentry id="function.ob-clean"> <refnamediv> <refname>ob_clean</refname> <refpurpose> Limpiar (eliminar) el búfer de salida </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>void</type><methodname>ob_clean</methodname> <void/> </methodsynopsis> <para> Esta función descarta los contenidos del búfer de salida. </para> <para> Esta función no destruye el búfer de salida, como lo hace <function>ob_end_clean</function>. </para> <para> Vea también <function>ob_flush</function>, <function>ob_end_flush</function> y <function>ob_end_clean</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 --> Index: phpdoc-es/reference/outcontrol/functions/ob-flush.xml +++ phpdoc-es/reference/outcontrol/functions/ob-flush.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/outcontrol.xml, last change in rev 1.20 --> <refentry id="function.ob-flush"> <refnamediv> <refname>ob_flush</refname> <refpurpose> Vaciar (enviar) el búfer de salida </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>void</type><methodname>ob_flush</methodname> <void/> </methodsynopsis> <para> Esta función enviará los contenidos del búfer de salida (si los hay). Si desea continuar procesando los contenidos del búfer, tiene que llamar <function>ob_get_contents</function> antes de <function>ob_flush</function>, ya que los contenidos del búfer son descartados luego de que la función <function>ob_flush</function> es llamada. </para> <para> Esta función no destruye el búfer de salida, como lo hace <function>ob_end_flush</function>. </para> <para> Vea también <function>ob_get_contents</function>, <function>ob_clean</function>, <function>ob_end_flush</function> y <function>ob_end_clean</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 --> Index: phpdoc-es/reference/outcontrol/functions/ob-get-clean.xml +++ phpdoc-es/reference/outcontrol/functions/ob-get-clean.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: lboshell Status: ready --> <refentry id="function.ob-get-clean"> <refnamediv> <refname>ob_get_clean</refname> <refpurpose> Obtener los contenidos del búfer actual y eliminar el búfer de salida actual </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>string</type><methodname>ob_get_clean</methodname> <void/> </methodsynopsis> <para> Esta función devolverá los contenidos del búfer de salida y finalizará el control de salida mediante búferes. Si el control de salida con búferes no está activo, entonces se devuelve &false;. <function>ob_get_clean</function> básicamente ejecuta tanto <function>ob_get_contents</function> como <function>ob_end_clean</function>. </para> <para> <example> <title>Un ejemplo simple de <function>ob_get_clean</function></title> <programlisting role="php"> <![CDATA[ <?php ob_start(); echo "Hola Mundo"; $salida = ob_get_clean(); $salida = strtolower($salida); var_dump($salida); ?> ]]> </programlisting> <para> Nuestro ejemplo producirá la salida: </para> <screen> <![CDATA[ string(10) "hola mundo" ]]> </screen> </example> </para> <para> Vea también <function>ob_start</function> y <function>ob_get_contents</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 --> Index: phpdoc-es/reference/outcontrol/functions/ob-get-level.xml +++ phpdoc-es/reference/outcontrol/functions/ob-get-level.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/outcontrol.xml, last change in rev 1.11 --> <refentry id="function.ob-get-level"> <refnamediv> <refname>ob_get_level</refname> <refpurpose> Devolver el nivel de anidamiento del mecanismo de búferes de salida </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>int</type><methodname>ob_get_level</methodname> <void/> </methodsynopsis> <para> Esta función devolverá el nivel de gestores de búferes de control anidados. </para> <para> Vea también <function>ob_start</function> y <function>ob_get_contents</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 --> Index: phpdoc-es/reference/outcontrol/functions/ob-get-status.xml +++ phpdoc-es/reference/outcontrol/functions/ob-get-status.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: lboshell Status: ready --> <refentry id="function.ob-get-status"> <refnamediv> <refname>ob_get_status</refname> <refpurpose> Obtener el status de los búferes de salida </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>array</type><methodname>ob_get_status</methodname> <methodparam choice="opt"><type>bool</type><parameter> status_completo</parameter> </methodparam> </methodsynopsis> &warn.experimental.func; <para> Esta función devolverá el status actual de los búferes de salida. Devuelve una matriz que contiene el estátus de búfer, o &false; en caso de fallo. </para> <para> Vea también <function>ob_get_level</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 --> Index: phpdoc-es/reference/outcontrol/functions/ob-gzhandler.xml +++ phpdoc-es/reference/outcontrol/functions/ob-gzhandler.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.4 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/outcontrol.xml, last change in rev 1.1 --> <refentry id="function.ob-gzhandler"> <refnamediv> <refname>ob_gzhandler</refname> <refpurpose> Llamada de retorno de ob_start para comprimir mediante gzip el búfer de salida </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>string</type><methodname>ob_gzhandler</methodname> <methodparam><type>string</type><parameter>bufer</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>modo</parameter></methodparam> </methodsynopsis> <note> <para> <parameter>modo</parameter> fue añadido en PHP 4.0.5. </para> </note> <para> El propósito de <function>ob_gzhandler</function> es el de ser usado como una llamada de retorno para <function>ob_start</function>, facilitando el envío de datos codificados mediante gz hacia navegadores web que soportan la gestión de páginas web comprimidas. Antes de que <function>ob_gzhandler</function> envíe realmente los datos, determina qué tipo de codificación de contenido acepta el navegador ("gzip", "deflate" o ninguno) y devolverá su salida acordemente. Todos los navegadores son soportados, ya que es tarea del navegador el enviar la cabecera apropiada indicando que acepta páginas web comprimidas. </para> <para> <example> <title>Ejemplo de <function>ob_gzhandler</function></title> <programlisting role="php"> <![CDATA[ <?php ob_start("ob_gzhandler"); ?> <html> <body> <p>Esta debe ser una página web comprimida. </html> <body> ]]> </programlisting> </example> </para> <para> Vea también <function>ob_start</function> y <function>ob_end_flush</function>. </para> <note> <para> No puede usar <function>ob_gzhandler</function> y <link linkend="ini.zlib.output-compression">ini.zlib.output_compression</link> al mismo tiempo. También note que el uso de <link linkend="ini.zlib.output-compression">ini.zlib.output_compression</link> se prefiere sobre el uso de <function>ob_gzhandler</function>. </para> </note> </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 -->
Index: phpdoc-es/translation.xml diff -u phpdoc-es/translation.xml:1.103 phpdoc-es/translation.xml:1.104 --- phpdoc-es/translation.xml:1.103 Mon Dec 15 22:09:37 2003 +++ phpdoc-es/translation.xml Tue Dec 16 22:09:03 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.103 $ --> +<!-- $Revision: 1.104 $ --> <!DOCTYPE translation SYSTEM "../entities/translation.dtd"> <translation> @@ -45,13 +45,33 @@ <file name="reference/errorfunc/functions/set-error-handler.xml" person="javi" type="translation" date="01.12.2003"/> <file name="reference/errorfunc/functions/trigger-error.xml" person="javi" type="translation" date="01.12.2003"/> <file name="reference/errorfunc/functions/user-error.xml" person="javi" type="translation" date="01.12.2003"/> -<file name="reference/outcontrol/ini.xml" person="lboshell" type="translation" date="15.12.2003"/> -<file name="reference/outcontrol/reference.xml" person="lboshell" type="review" date="15.12.2003"/> -<file name="reference/outcontrol/functions/ob-clean.xml" person="lboshell" type="translation" date="15.12.2003"/> -<file name="reference/outcontrol/functions/ob-flush.xml" person="lboshell" type="translation" date="15.12.2003"/> -<file name="reference/outcontrol/functions/ob-get-clean.xml" person="lboshell" type="translation" date="15.12.2003"/> -<file name="reference/outcontrol/functions/ob-get-level.xml" person="lboshell" type="translation" date="15.12.2003"/> -<file name="reference/outcontrol/functions/ob-get-status.xml" person="lboshell" type="translation" date="15.12.2003"/> -<file name="reference/outcontrol/functions/ob-gzhandler.xml" person="lboshell" type="translation" date="15.12.2003"/> +<file name="reference/stream/constants.xml" person="lboshell" type="translation" date="16.12.2003"/> +<file name="reference/stream/reference.xml" person="lboshell" type="translation" date="16.12.2003"/> +<file name="reference/stream/functions/stream-context-create.xml" person="lboshell" type="translation" date="16.12.2003"/> +<file name="reference/stream/functions/stream-context-get-options.xml" person="lboshell" type="translation" date="16.12.2003"/> +<file name="reference/stream/functions/stream-context-set-option.xml" person="lboshell" type="translation" date="16.12.2003"/> +<file name="reference/stream/functions/stream-context-set-params.xml" person="lboshell" type="translation" date="16.12.2003"/> +<file name="reference/stream/functions/stream-copy-to-stream.xml" person="lboshell" type="translation" date="16.12.2003"/> +<file name="reference/stream/functions/stream-filter-append.xml" person="lboshell" type="translation" date="16.12.2003"/> +<file name="reference/stream/functions/stream-filter-prepend.xml" person="lboshell" type="translation" date="16.12.2003"/> +<file name="reference/stream/functions/stream-filter-register.xml" person="lboshell" type="translation" date="16.12.2003"/> +<file name="reference/stream/functions/stream-get-contents.xml" person="lboshell" type="translation" date="16.12.2003"/> +<file name="reference/stream/functions/stream-get-filters.xml" person="lboshell" type="translation" date="16.12.2003"/> +<file name="reference/stream/functions/stream-get-line.xml" person="lboshell" type="translation" date="16.12.2003"/> +<file name="reference/stream/functions/stream-get-meta-data.xml" person="lboshell" type="translation" date="16.12.2003"/> +<file name="reference/stream/functions/stream-get-transports.xml" person="lboshell" type="translation" date="16.12.2003"/> +<file name="reference/stream/functions/stream-get-wrappers.xml" person="lboshell" type="translation" date="16.12.2003"/> +<file name="reference/stream/functions/stream-register-wrapper.xml" person="lboshell" type="translation" date="16.12.2003"/> +<file name="reference/stream/functions/stream-select.xml" person="lboshell" type="translation" date="16.12.2003"/> +<file name="reference/stream/functions/stream-set-blocking.xml" person="lboshell" type="translation" date="16.12.2003"/> +<file name="reference/stream/functions/stream-set-timeout.xml" person="lboshell" type="translation" date="16.12.2003"/> +<file name="reference/stream/functions/stream-set-write-buffer.xml" person="lboshell" type="translation" date="16.12.2003"/> +<file name="reference/stream/functions/stream-socket-accept.xml" person="lboshell" type="translation" date="16.12.2003"/> +<file name="reference/stream/functions/stream-socket-client.xml" person="lboshell" type="translation" date="16.12.2003"/> +<file name="reference/stream/functions/stream-socket-get-name.xml" person="lboshell" type="translation" date="16.12.2003"/> +<file name="reference/stream/functions/stream-socket-recvfrom.xml" person="lboshell" type="translation" date="16.12.2003"/> +<file name="reference/stream/functions/stream-socket-sendto.xml" person="lboshell" type="translation" date="16.12.2003"/> +<file name="reference/stream/functions/stream-socket-server.xml" person="lboshell" type="translation" date="16.12.2003"/> +<file name="reference/stream/functions/stream-wrapper-register.xml" person="lboshell" type="translation" date="16.12.2003"/> </work-in-progress> </translation> Index: phpdoc-es/reference/array/functions/array-search.xml diff -u phpdoc-es/reference/array/functions/array-search.xml:1.2 phpdoc-es/reference/array/functions/array-search.xml:1.3 --- phpdoc-es/reference/array/functions/array-search.xml:1.2 Mon Dec 15 22:09:46 2003 +++ phpdoc-es/reference/array/functions/array-search.xml Tue Dec 16 22:09:04 2003 @@ -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/array.xml, last change in rev 1.2 --> <refentry id="function.array-search"> <refnamediv> @@ -62,8 +62,8 @@ <?php $matriz = array(0 => "blue", 1 => "red", 2 => "green", 3 => "red"); -$clave = array_search($matriz, "green")); // $clave = 2; -$clave = array_search($matriz, "red")); // $clave = 1; +$clave = array_search($matriz, "green"); // $clave = 2; +$clave = array_search($matriz, "red"); // $clave = 1; ?> ]]> </programlisting> Index: phpdoc-es/reference/exec/functions/shell-exec.xml diff -u phpdoc-es/reference/exec/functions/shell-exec.xml:1.1 phpdoc-es/reference/exec/functions/shell-exec.xml:1.2 --- phpdoc-es/reference/exec/functions/shell-exec.xml:1.1 Tue Nov 11 01:05:35 2003 +++ phpdoc-es/reference/exec/functions/shell-exec.xml Tue Dec 16 22:09:05 2003 @@ -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 --> <!-- splitted from ./en/functions/exec.xml, last change in rev 1.2 --> <refentry id='function.shell-exec'> <refnamediv> @@ -21,6 +21,7 @@ linkend="language.operators.execution">operador de comillas invertidas</link>. </para> + ¬e.sm.disabled; </refsect1> </refentry> Index: phpdoc-es/reference/info/functions/dl.xml diff -u phpdoc-es/reference/info/functions/dl.xml:1.1 phpdoc-es/reference/info/functions/dl.xml:1.2 --- phpdoc-es/reference/info/functions/dl.xml:1.1 Mon Dec 1 20:52:28 2003 +++ phpdoc-es/reference/info/functions/dl.xml Tue Dec 16 22:09:05 2003 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.13 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.14 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/info.xml, last change in rev 1.29 --> <refentry id="function.dl"> <refnamediv> @@ -124,6 +124,7 @@ minúsculas en plataformas Unix. </para> </note> + ¬e.sm.disabled; <para> Vea también <link linkend="ini.extension">Directivas de Carga de Extensión</link> y <function>extension_loaded</function>. Index: phpdoc-es/reference/mime_magic/configure.xml diff -u phpdoc-es/reference/mime_magic/configure.xml:1.1 phpdoc-es/reference/mime_magic/configure.xml:1.2 --- phpdoc-es/reference/mime_magic/configure.xml:1.1 Thu Dec 11 19:17:02 2003 +++ phpdoc-es/reference/mime_magic/configure.xml Tue Dec 16 22:09:06 2003 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.5 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.8 Maintainer: lboshell Status: ready --> <section id="mime-magic.installation"> &reftitle.install; <para> @@ -33,15 +33,19 @@ Para usar este módulo en un entorno Windows, debe definir la ruta hacia el archivo <filename>magic.mime</filename> distribuido en su &php.ini;. + </para> + <para> <example> <title>Definición de la ruta hacia <filename>magic.mime</filename></title> <programlisting> - <![CDATA[ - mime_magic.magicfile ="$PHP_INSTALL_DIR\magic.mime" - ]]> +<![CDATA[ +mime_magic.magicfile ="$PHP_INSTALL_DIR\magic.mime" +]]> </programlisting> </example> + </para> + <para> Recuerde sustituir el valor <filename>$PHP_INSTALL_DIR</filename> con su ruta real hacia <literal>PHP</literal> en el anterior ejemplo. Por ejemplo, <filename>c:\php</filename> Index: phpdoc-es/reference/outcontrol/reference.xml diff -u phpdoc-es/reference/outcontrol/reference.xml:1.2 phpdoc-es/reference/outcontrol/reference.xml:1.3 --- phpdoc-es/reference/outcontrol/reference.xml:1.2 Mon Apr 15 20:33:09 2002 +++ phpdoc-es/reference/outcontrol/reference.xml Tue Dec 16 22:09:07 2003 @@ -1,48 +1,97 @@ <?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.11 Maintainer: lboshell Status: ready --> <reference id="ref.outcontrol"> - <title>Output Control Functions</title> - <titleabbrev>Output Control</titleabbrev> + <title>Funciones de Control de Salida</title> + <titleabbrev>Control de Salida</titleabbrev> <partintro> - <para> - The Output Control functions allow you to control when output is - sent from the script. This can be useful in several different - situations, especially if you need to send headers to the browser - after your script has began outputing data. The Output Control - functions do not affect headers sent using - <function>header</function> or <function>setcookie</function>, - only functions such as <function>echo</function> and data between - blocks of PHP code. - </para> - <para> - <example> - <title>Output Control example</title> - <programlisting role="php"> -<?php + <section id="outcontrol.intro"> + &reftitle.intro; + <para> +Las funciones de Control de Salida le permiten controlar cuándo +es enviada la salida desde el script. Esto puede resultar útil +en muchas situaciones diferentes, especialmente si necesita enviar +cabeceras al navegador después de que su script ha comenzado a +enviar datos. Las funciones de Control de Salida no afectan las +cabeceras enviadas usando <function>header</function> +o <function>setcookie</function>, sólo funciones +como <function>echo</function> y los datos entre bloques de +código PHP. + </para> + </section> + + <section id="outcontrol.requirements"> + &reftitle.required; + &no.requirement; + </section> + + <section id="outcontrol.installation"> + &reftitle.install; + &no.install; + </section> + + &reference.outcontrol.ini; + + <section id="outcontrol.resources"> + &reftitle.resources; + &no.resource; + </section> + + <section id="outcontrol.constants"> + &reftitle.constants; + &no.constants; + </section> + + <section id="outcontrol.examples"> + &reftitle.examples; + <para> + <example> + <title>Ejemplo de Control de Salida</title> + <programlisting role="php"> +<![CDATA[ +<?php ob_start(); -echo "Hello\n"; +echo "Hola\n"; -setcookie ("cookiename", "cookiedata"); +setcookie("nombre_cookie", "datos_cookie"); ob_end_flush(); -?> - </programlisting> - </example> - </para> - <para> - In the above example, the output from <function>echo</function> - would be stored in the output buffer until - <function>ob_end_flush</function> was called. In the mean time, - the call to <function>setcookie</function> successfully stored a - cookie without causing an error. (You can not normally send - headers to the browser after data has already been sent.) - </para> - <para> - See also <function>header</function> and - <function>setcookie</function>. - </para> +?> +]]> + </programlisting> + </example> + </para> + <para> +En el anterior ejemplo, la salida de <function>echo</function> +sería almacenada en el búfer de salida hasta +que <function>ob_end_flush</function> sea llamada. Entre tanto, la +llamada a <function>setcookie</function> almacena satisfactoriamente +una cookie sin causar un error. (Normalmente, usted no puede enviar +cabeceras al navegador después de que se han enviado datos.) + </para> + <note> + <para> +Cuando se actualice desde PHP 4.1 (y 4.2) hacia 4.3, debe asegurarse +de que <literal>implict_flush</literal> tenga el +valor <literal>OFF</literal> en su &php.ini; debido a un fallo en +versiones antiguas, de otra forma, cualquier salida procesada +por <function>ob_start</function> no se ocultará de la salida +final. + </para> + </note> + </section> + + <section id="outcontrol.seealso"> + &reftitle.seealso; + <para> + Vea también + <function>header</function> y + <function>setcookie</function>. + </para> + </section> </partintro> &reference.outcontrol.functions; @@ -64,5 +113,8 @@ sgml-local-catalogs:nil sgml-local-ecat-files:nil End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 --> Index: phpdoc-es/reference/outcontrol/ini.xml +++ phpdoc-es/reference/outcontrol/ini.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: lboshell Status: ready --> <section id="outcontrol.configuration"> &reftitle.runtime; &extension.runtime; <para> <table> <title>Opciones de configuración del Control de Salida</title> <tgroup cols="3"> <thead> <row> <entry>Nombre</entry> <entry>Predeterminado</entry> <entry>Modificable</entry> </row> </thead> <tbody> <row> <entry>output_buffering</entry> <entry>"0"</entry> <entry>PHP_INI_PERDIR|PHP_INI_SYSTEM</entry> </row> <row> <entry>output_handler</entry> <entry>NULL</entry> <entry>PHP_INI_PERDIR|PHP_INI_SYSTEM</entry> </row> <row> <entry>implicit_flush</entry> <entry>"0"</entry> <entry>PHP_INI_PERDIR|PHP_INI_SYSTEM</entry> </row> </tbody> </tgroup> </table> Para más detalles sobre las constantes PHP_INI_* y su definición, vea <function>ini_set</function>. </para> &ini.descriptions.title; <para> <variablelist> <varlistentry id="ini.output-buffering"> <term> <parameter>output_buffering</parameter> <type>boolean</type>/<type>integer</type> </term> <listitem> <para> Puede habilitar el uso de búferes de salida para todos los archivos, definiendo esta directiva como 'On'. Si desea limitar el tamaño del búfer a cierta cantidad - puede usar un número máximo de bytes, en lugar de 'On', como valor para esta directiva (p.ej., output_buffering=4096). </para> </listitem> </varlistentry> <varlistentry id="ini.output-handler"> <term> <parameter>output_handler</parameter> <type>string</type> </term> <listitem> <para> Puede redireccionar toda la salida de sus scripts a una función. Por ejemplo, si establece el valor de output_handler a <function>mb_output_handler</function>, la codificación de caracteres será convertida de forma transparente a la codificación especificada. Al definir cualquier gestor de salida, el control mediante búferes se activa automáticamente. </para> <note> <para> Usted no puede usar <function>mb_output_handler</function> con <function>ob_inconv_handler</function> al tiempo, y no puede usar <function>ob_gzhandler</function> y <link linkend="ini.zlib.output-compression">zlib.output_compression</link> al tiempo. </para> </note> </listitem> </varlistentry> <varlistentry id="ini.implicit-flush"> <term> <parameter>implicit_flush</parameter> <type>boolean</type> </term> <listitem> <para> &false; por defecto. Cambiar este valor a &true; le indica a PHP que debe decirle a la capa de salida que se vacíe automáticamente después de cada bloque de salida. Esto es equivalente a llamar la función de <literal>PHP</literal> <function>flush</function> después de todas y cada una de las llamadas a <function>print</function> o <function>echo</function>, y cada bloque <literal>HTML</literal>. </para> <para> Cuando use <literal>PHP</literal> bajo un entorno web, el habilitar esta opción tiene unas implicaciones serias en el rendimiento, y por lo general se recomienda su uso únicamente para propósitos de depuración. Este valor es igual a &true; por defecto cuando se opera bajo la <literal>SAPI CLI</literal>. </para> <para> Vea también <function>ob_implicit_flush</function>. </para> </listitem> </varlistentry> </variablelist> </para> </section> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-es/reference/outcontrol/functions/ob-clean.xml +++ phpdoc-es/reference/outcontrol/functions/ob-clean.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/outcontrol.xml, last change in rev 1.20 --> <refentry id="function.ob-clean"> <refnamediv> <refname>ob_clean</refname> <refpurpose> Limpiar (eliminar) el búfer de salida </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>void</type><methodname>ob_clean</methodname> <void/> </methodsynopsis> <para> Esta función descarta los contenidos del búfer de salida. </para> <para> Esta función no destruye el búfer de salida, como lo hace <function>ob_end_clean</function>. </para> <para> Vea también <function>ob_flush</function>, <function>ob_end_flush</function> y <function>ob_end_clean</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 --> Index: phpdoc-es/reference/outcontrol/functions/ob-flush.xml +++ phpdoc-es/reference/outcontrol/functions/ob-flush.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/outcontrol.xml, last change in rev 1.20 --> <refentry id="function.ob-flush"> <refnamediv> <refname>ob_flush</refname> <refpurpose> Vaciar (enviar) el búfer de salida </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>void</type><methodname>ob_flush</methodname> <void/> </methodsynopsis> <para> Esta función enviará los contenidos del búfer de salida (si los hay). Si desea continuar procesando los contenidos del búfer, tiene que llamar <function>ob_get_contents</function> antes de <function>ob_flush</function>, ya que los contenidos del búfer son descartados luego de que la función <function>ob_flush</function> es llamada. </para> <para> Esta función no destruye el búfer de salida, como lo hace <function>ob_end_flush</function>. </para> <para> Vea también <function>ob_get_contents</function>, <function>ob_clean</function>, <function>ob_end_flush</function> y <function>ob_end_clean</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 --> Index: phpdoc-es/reference/outcontrol/functions/ob-get-clean.xml +++ phpdoc-es/reference/outcontrol/functions/ob-get-clean.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: lboshell Status: ready --> <refentry id="function.ob-get-clean"> <refnamediv> <refname>ob_get_clean</refname> <refpurpose> Obtener los contenidos del búfer actual y eliminar el búfer de salida actual </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>string</type><methodname>ob_get_clean</methodname> <void/> </methodsynopsis> <para> Esta función devolverá los contenidos del búfer de salida y finalizará el control de salida mediante búferes. Si el control de salida con búferes no está activo, entonces se devuelve &false;. <function>ob_get_clean</function> básicamente ejecuta tanto <function>ob_get_contents</function> como <function>ob_end_clean</function>. </para> <para> <example> <title>Un ejemplo simple de <function>ob_get_clean</function></title> <programlisting role="php"> <![CDATA[ <?php ob_start(); echo "Hola Mundo"; $salida = ob_get_clean(); $salida = strtolower($salida); var_dump($salida); ?> ]]> </programlisting> <para> Nuestro ejemplo producirá la salida: </para> <screen> <![CDATA[ string(10) "hola mundo" ]]> </screen> </example> </para> <para> Vea también <function>ob_start</function> y <function>ob_get_contents</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 --> Index: phpdoc-es/reference/outcontrol/functions/ob-get-level.xml +++ phpdoc-es/reference/outcontrol/functions/ob-get-level.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/outcontrol.xml, last change in rev 1.11 --> <refentry id="function.ob-get-level"> <refnamediv> <refname>ob_get_level</refname> <refpurpose> Devolver el nivel de anidamiento del mecanismo de búferes de salida </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>int</type><methodname>ob_get_level</methodname> <void/> </methodsynopsis> <para> Esta función devolverá el nivel de gestores de búferes de control anidados. </para> <para> Vea también <function>ob_start</function> y <function>ob_get_contents</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 --> Index: phpdoc-es/reference/outcontrol/functions/ob-get-status.xml +++ phpdoc-es/reference/outcontrol/functions/ob-get-status.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: lboshell Status: ready --> <refentry id="function.ob-get-status"> <refnamediv> <refname>ob_get_status</refname> <refpurpose> Obtener el status de los búferes de salida </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>array</type><methodname>ob_get_status</methodname> <methodparam choice="opt"><type>bool</type><parameter> status_completo</parameter> </methodparam> </methodsynopsis> &warn.experimental.func; <para> Esta función devolverá el status actual de los búferes de salida. Devuelve una matriz que contiene el estátus de búfer, o &false; en caso de fallo. </para> <para> Vea también <function>ob_get_level</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 --> Index: phpdoc-es/reference/outcontrol/functions/ob-gzhandler.xml +++ phpdoc-es/reference/outcontrol/functions/ob-gzhandler.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.4 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/outcontrol.xml, last change in rev 1.1 --> <refentry id="function.ob-gzhandler"> <refnamediv> <refname>ob_gzhandler</refname> <refpurpose> Llamada de retorno de ob_start para comprimir mediante gzip el búfer de salida </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>string</type><methodname>ob_gzhandler</methodname> <methodparam><type>string</type><parameter>bufer</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>modo</parameter></methodparam> </methodsynopsis> <note> <para> <parameter>modo</parameter> fue añadido en PHP 4.0.5. </para> </note> <para> El propósito de <function>ob_gzhandler</function> es el de ser usado como una llamada de retorno para <function>ob_start</function>, facilitando el envío de datos codificados mediante gz hacia navegadores web que soportan la gestión de páginas web comprimidas. Antes de que <function>ob_gzhandler</function> envíe realmente los datos, determina qué tipo de codificación de contenido acepta el navegador ("gzip", "deflate" o ninguno) y devolverá su salida acordemente. Todos los navegadores son soportados, ya que es tarea del navegador el enviar la cabecera apropiada indicando que acepta páginas web comprimidas. </para> <para> <example> <title>Ejemplo de <function>ob_gzhandler</function></title> <programlisting role="php"> <![CDATA[ <?php ob_start("ob_gzhandler"); ?> <html> <body> <p>Esta debe ser una página web comprimida. </html> <body> ]]> </programlisting> </example> </para> <para> Vea también <function>ob_start</function> y <function>ob_end_flush</function>. </para> <note> <para> No puede usar <function>ob_gzhandler</function> y <link linkend="ini.zlib.output-compression">ini.zlib.output_compression</link> al mismo tiempo. También note que el uso de <link linkend="ini.zlib.output-compression">ini.zlib.output_compression</link> se prefiere sobre el uso de <function>ob_gzhandler</function>. </para> </note> </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 -->