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 Actualizări prin RSS | E-mail Get updates via feedburner Get updates via twitter
Home / Coding / PHP / PHP:ob_start() Display page … Prima / codificare / PHP / PHP: ob_start () pagina Display ...

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 ()

Translate this post Traduceţi acest post


Related posts: Legate de posturi:

  1. Browsing errors: пщщпду or пщщпдуюсщь Erorile de Browsing: пщщпду sau пщщпдуюсщь
  2. 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
  3. 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

    blog comments powered by Disqus comentarii blog-ul creat de Disqus