PHP:ob_start() Display page at once, forget about cookie,headers sent too early errors PHP: ob_start () pagina Display puţin o dată, a ierta despre cookie, antetele trimis erori prea devreme
Posted on 21. Postat la data de 21. Aug, 2009 by Dragos in Coding , PHP August, 2009 de către Dragos în codificare a mărfurilor, 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. Dacă doriţi să se afişeze paginile dvs. de web puţin o dată, nu ulterior, şi de a reduce antetele "a trimis deja, nu poate trimite informaţii cookie" erori, adăugaţi ob_start (), la începutul script-ului.
This function will turn output buffering on. Această funcţie va porni de ieşire pe buffering. While output buffering is active no output is sent from the script (other than headers), instead the output is stored in an internal buffer. În timp ce buffering de ieşire este activ nici o ieşire este trimis de la script-ul (altele decât headers), în loc de ieşire este stocată într-un tampon intern. (php.net) (php.net)
You can also manipulate the contents of the output by using the function ob_get_contents() Puteţi manipula, de asemenea, conţinutul de ieşire prin utilizarea ob_get_contents funcţie ()
Related posts: Legate de posturi:
- Browsing errors: пщщпду or пщщпдуюсщь Erorile de Browsing: пщщпду sau пщщпдуюсщь
- PHP: How to download a webpage (aka web scrapping) with PHP PHP: Cum de a descărca o pagină Web (alias fier vechi web) cu PHP
- Coding:How to fetch user profile data with SSI.php from a SMF forum database Codificare: Cum să-i aducă datele utilizatorului, cu profil de SSI.php de la o bază de date forum SMF












































