This is a translated page. The original can be found here: http://iwebdevel.com/2009/08/21/phpob_start-display-page-at-once-forget-about-cookieheaders-sent-too-early-errors/
UPDATES VIA RSS | Email ACTUALIZACIONES VIA RSS | Email Get updates via feedburner Get updates via twitter
Home / Coding / PHP / PHP:ob_start() Display page … Inicio / codificación / PHP / PHP: ob_start () la página de visualización ...

PHP:ob_start() Display page at once, forget about cookie,headers sent too early errors PHP: ob_start () página de visualización a la vez, olvidarse de cookies, cabeceras enviadas errores demasiado pronto

Posted on 21. Publicado en 21. Aug, 2009 by Dragos in Coding , PHP Agosto de 2009, por Dragos en la codificación, PHP

If you want to display your web pages at once, not subsequently, and reduce the “headers already sent, cannot send cookie information” errors, add ob_start() at the start of your script. Si desea mostrar sus páginas web al mismo tiempo, no después, y reducir los "headers already sent, no puede enviar información de las cookies" errores, agregar ob_start () al comienzo de su script.

This function will turn output buffering on. Esta función se convertirá en buffers de salida. While output buffering is active no output is sent from the script (other than headers), instead the output is stored in an internal buffer. Mientras que el búfer de salida se activa no se envía la salida de la secuencia de comandos (excepto los títulos), en lugar de la salida se almacena en un buffer interno. (php.net) php.net ()

You can also manipulate the contents of the output by using the function ob_get_contents() También puede manipular el contenido de la producción mediante el uso de la ob_get_contents function ()

Translate this post Traducir este mensaje


Related posts: Puestos relacionados con:

  1. Browsing errors: пщщпду or пщщпдуюсщь Errores de navegación: пщщпду o пщщпдуюсщь
  2. PHP: How to download a webpage (aka web scrapping) with PHP PHP: Cómo descargar una página web (también conocido como el desguace de la web) con PHP
  3. Coding:How to fetch user profile data with SSI.php from a SMF forum database Codificación: Cómo buscar datos de perfiles de usuario con SSI.php de una base de datos de foro SMF

    blog comments powered by Disqus blog alimentado por Disqus