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 Atualizações Via RSS | Email Get updates via feedburner Get updates via twitter
Home / Coding / PHP / PHP:ob_start() Display page … Home / Codificação / PHP / PHP: ob_start () página de exibição ...

PHP:ob_start() Display page at once, forget about cookie,headers sent too early errors PHP: ob_start () de mostrar de uma vez, esquece de cookies, cabeçalhos enviados erros muito cedo

Posted on 21. Postado em 21. Aug, 2009 by Dragos in Coding , PHP Agosto de 2009 por Dragos na Codificação, 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. Se você quiser mostrar suas páginas de uma só vez, e não posteriormente, e reduzir os cabeçalhos "já foi enviado, não podem enviar informações do cookie" erros, adicionar ob_start () no início do seu script.

This function will turn output buffering on. Esta função irá ativar o buffer de saída. While output buffering is active no output is sent from the script (other than headers), instead the output is stored in an internal buffer. Enquanto o buffer de saída está ativa nenhuma saída é enviada do script (que não cabeçalhos), ao invés a saída é armazenada em um buffer interno. (php.net) (php.net)

You can also manipulate the contents of the output by using the function ob_get_contents() Você também pode manipular o conteúdo da saída usando a função ob_get_contents ()

Translate this post Traduzir este post


Related posts: Related posts:

  1. Browsing errors: пщщпду or пщщпдуюсщь Erros de Navegação: пщщпду ou пщщпдуюсщь
  2. PHP: How to download a webpage (aka web scrapping) with PHP PHP: Como baixar uma página web (web demolição aka) com PHP
  3. Coding:How to fetch user profile data with SSI.php from a SMF forum database Coding: Como buscar dados de perfil de usuário com SSI.php de um banco de fórum SMF

    blog comments powered by Disqus blog comentários powered by Disqus