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: 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> + &note.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&uacute;sculas en plataformas Unix. </para> </note> + &note.sm.disabled; <para> Vea tambi&eacute;n <link linkend="ini.extension">Directivas de Carga de Extensi&oacute;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&oacute;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&oacute;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"> -&lt;?php + <section id="outcontrol.intro"> + &reftitle.intro; + <para> +Las funciones de Control de Salida le permiten controlar cu&aacute;ndo +es enviada la salida desde el script. Esto puede resultar &uacute;til +en muchas situaciones diferentes, especialmente si necesita enviar +cabeceras al navegador despu&eacute;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&oacute;lo funciones +como <function>echo</function> y los datos entre bloques de +c&oacute;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(); -?&gt; - </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&iacute;a almacenada en el b&uacute;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&eacute;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&aacute; de la salida +final. + </para> + </note> + </section> + + <section id="outcontrol.seealso"> + &reftitle.seealso; + <para> + Vea tambi&eacute;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&oacute;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&aacute;s detalles sobre las constantes PHP_INI_* y su definici&oacute;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&uacute;feres de salida para todos los archivos, definiendo esta directiva como 'On'. Si desea limitar el tama&ntilde;o del b&uacute;fer a cierta cantidad - puede usar un n&uacute;mero m&aacute;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&oacute;n. Por ejemplo, si establece el valor de output_handler a <function>mb_output_handler</function>, la codificaci&oacute;n de caracteres ser&aacute; convertida de forma transparente a la codificaci&oacute;n especificada. Al definir cualquier gestor de salida, el control mediante b&uacute;feres se activa autom&aacute;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&iacute;e autom&aacute;ticamente despu&eacute;s de cada bloque de salida. Esto es equivalente a llamar la funci&oacute;n de <literal>PHP</literal> <function>flush</function> despu&eacute;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&oacute;n tiene unas implicaciones serias en el rendimiento, y por lo general se recomienda su uso &uacute;nicamente para prop&oacute;sitos de depuraci&oacute;n. Este valor es igual a &true; por defecto cuando se opera bajo la <literal>SAPI CLI</literal>. </para> <para> Vea tambi&eacute;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&uacute;fer de salida </refpurpose> </refnamediv> <refsect1> <title>Descripci&oacute;n</title> <methodsynopsis> <type>void</type><methodname>ob_clean</methodname> <void/> </methodsynopsis> <para> Esta funci&oacute;n descarta los contenidos del b&uacute;fer de salida. </para> <para> Esta funci&oacute;n no destruye el b&uacute;fer de salida, como lo hace <function>ob_end_clean</function>. </para> <para> Vea tambi&eacute;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&uacute;fer de salida </refpurpose> </refnamediv> <refsect1> <title>Descripci&oacute;n</title> <methodsynopsis> <type>void</type><methodname>ob_flush</methodname> <void/> </methodsynopsis> <para> Esta funci&oacute;n enviar&aacute; los contenidos del b&uacute;fer de salida (si los hay). Si desea continuar procesando los contenidos del b&uacute;fer, tiene que llamar <function>ob_get_contents</function> antes de <function>ob_flush</function>, ya que los contenidos del b&uacute;fer son descartados luego de que la funci&oacute;n <function>ob_flush</function> es llamada. </para> <para> Esta funci&oacute;n no destruye el b&uacute;fer de salida, como lo hace <function>ob_end_flush</function>. </para> <para> Vea tambi&eacute;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&uacute;fer actual y eliminar el b&uacute;fer de salida actual </refpurpose> </refnamediv> <refsect1> <title>Descripci&oacute;n</title> <methodsynopsis> <type>string</type><methodname>ob_get_clean</methodname> <void/> </methodsynopsis> <para> Esta funci&oacute;n devolver&aacute; los contenidos del b&uacute;fer de salida y finalizar&aacute; el control de salida mediante b&uacute;feres. Si el control de salida con b&uacute;feres no est&aacute; activo, entonces se devuelve &false;. <function>ob_get_clean</function> b&aacute;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&aacute; la salida: </para> <screen> <![CDATA[ string(10) "hola mundo" ]]> </screen> </example> </para> <para> Vea tambi&eacute;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&uacute;feres de salida </refpurpose> </refnamediv> <refsect1> <title>Descripci&oacute;n</title> <methodsynopsis> <type>int</type><methodname>ob_get_level</methodname> <void/> </methodsynopsis> <para> Esta funci&oacute;n devolver&aacute; el nivel de gestores de b&uacute;feres de control anidados. </para> <para> Vea tambi&eacute;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&uacute;feres de salida </refpurpose> </refnamediv> <refsect1> <title>Descripci&oacute;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&oacute;n devolver&aacute; el status actual de los b&uacute;feres de salida. Devuelve una matriz que contiene el est&aacute;tus de b&uacute;fer, o &false; en caso de fallo. </para> <para> Vea tambi&eacute;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&uacute;fer de salida </refpurpose> </refnamediv> <refsect1> <title>Descripci&oacute;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&ntilde;adido en PHP 4.0.5. </para> </note> <para> El prop&oacute;sito de <function>ob_gzhandler</function> es el de ser usado como una llamada de retorno para <function>ob_start</function>, facilitando el env&iacute;o de datos codificados mediante gz hacia navegadores web que soportan la gesti&oacute;n de p&aacute;ginas web comprimidas. Antes de que <function>ob_gzhandler</function> env&iacute;e realmente los datos, determina qu&eacute; tipo de codificaci&oacute;n de contenido acepta el navegador ("gzip", "deflate" o ninguno) y devolver&aacute; su salida acordemente. Todos los navegadores son soportados, ya que es tarea del navegador el enviar la cabecera apropiada indicando que acepta p&aacute;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&aacute;gina web comprimida. </html> <body> ]]> </programlisting> </example> </para> <para> Vea tambi&eacute;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&eacute;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 -->
« previous php.doc.es (#446) next »