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 ()
Related posts: Related posts:
- Browsing errors: пщщпду or пщщпдуюсщь Erros de Navegação: пщщпду ou пщщпдуюсщь
- PHP: How to download a webpage (aka web scrapping) with PHP PHP: Como baixar uma página web (web demolição aka) com PHP
- 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












































