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 UPDATES VIA RSS | E-mail Get updates via feedburner Get updates via twitter
Home / Coding / PHP / PHP:ob_start() Display page … Home / Coding / PHP / PHP: ob_start () Display pagina ...

PHP:ob_start() Display page at once, forget about cookie,headers sent too early errors PHP: ob_start () Toon pagina in een keer, vergeet cookie, headers verstuurd te vroeg fouten

Posted on 21. Geplaatst op 21. Aug, 2009 by Dragos in Coding , PHP Augustus, 2009 door 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. Wilt u uw webpagina's weer te geven in een keer, daarna niet, en verminderen de "headers already sent, kan niet sturen cookie-informatie" fouten, voeg ob_start () bij het begin van je script.

This function will turn output buffering on. Deze functie schakelt output buffering op. While output buffering is active no output is sent from the script (other than headers), instead the output is stored in an internal buffer. Hoewel de output buffering is actief geen output wordt verzonden vanaf het script (andere dan headers), in plaats van de output wordt opgeslagen in een interne buffer. (php.net) (php.net)

You can also manipulate the contents of the output by using the function ob_get_contents() U kunt ook manipuleren van de inhoud van de output met behulp van de functie ob_get_contents ()

Translate this post Translate this post


Related posts: Gerelateerde berichten:

  1. Browsing errors: пщщпду or пщщпдуюсщь Browsen fouten: пщщпду of пщщпдуюсщь
  2. PHP: How to download a webpage (aka web scrapping) with PHP PHP: Hoe te downloaden van een webpagina (aka web sloop) met PHP
  3. Coding:How to fetch user profile data with SSI.php from a SMF forum database Coding: Hoe te halen gebruikersprofiel gegevens met SSI.php uit een SMF forum database

    blog comments powered by Disqus blog comments powered by Disqus