PHP:ob_start() Display page at once, forget about cookie,headers sent too early errors PHP: ob_start () Mostra pagina in una sola volta, dimenticare cookie, header inviato errori troppo presto
Posted on 21. Posted on 21. Aug, 2009 by Dragos in Coding , PHP Agosto, 2009 da Dragos in Coding, 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 si desidera visualizzare le pagine Web in una sola volta, e non successivamente, e ridurre le intestazioni "già spedito, non può inviare informazioni cookie", gli errori, aggiungere ob_start () all'inizio del vostro script.
This function will turn output buffering on. Questa funzione si accende di output buffering su. While output buffering is active no output is sent from the script (other than headers), instead the output is stored in an internal buffer. Mentre il buffer di output è attivo alcun output viene inviato dallo script (diverse intestazioni), invece l'uscita è memorizzato in un buffer interno. (php.net) (php.net)
You can also manipulate the contents of the output by using the function ob_get_contents() È inoltre possibile modificare il contenuto della produzione utilizzando la funzione di ob_get_contents ()
Related posts: Related posts:
- Browsing errors: пщщпду or пщщпдуюсщь Visualizzazione errori: пщщпду o пщщпдуюсщь
- PHP: How to download a webpage (aka web scrapping) with PHP PHP: Come scaricare una pagina web (aka demolizione web) con PHP
- Coding:How to fetch user profile data with SSI.php from a SMF forum database Coding: Come recuperare i dati del profilo utente con SSI.php da un database forum SMF












































