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 Päivitykset RSS | Sähköposti Get updates via feedburner Get updates via twitter
Home / Coding / PHP / PHP:ob_start() Display page … Etusivu / koodaus / PHP / PHP: ob_start () Näyttö sivu ...

PHP:ob_start() Display page at once, forget about cookie,headers sent too early errors PHP: ob_start () Näytä sivu kerrallaan, unohtaa evästeen, otsikot lähetetty liian aikaisin virheitä

Posted on 21. Postitettu 21. Aug, 2009 by Dragos in Coding , PHP Elokuu, 2009 Dragos vuonna 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. Jos haluat katsella web-sivuja kerralla, ei myöhemmin, ja vähentää "headers already sent, voi lähettää evästeen tiedot" virheitä, lisätä ob_start () alussa oman käsikirjoituksen.

This function will turn output buffering on. Tämä toiminto puolestaan tulostuksenhallintafunktioita on. While output buffering is active no output is sent from the script (other than headers), instead the output is stored in an internal buffer. Vaikka tuotos puskurointi on aktiivinen ole tuotos lähetetään script (muuta kuin otsikot), vaan tuotanto on tallennettu sisäiseen puskuriin. (php.net) (php.net)

You can also manipulate the contents of the output by using the function ob_get_contents() Voit myös käsitellä sisällön tuotannon avulla toiminnon ob_get_contents ()

Translate this post Käännä tämä viesti


Related posts: Liittyvien virkojen:

  1. Browsing errors: пщщпду or пщщпдуюсщь Selaaminen virheitä: пщщпду tai пщщпдуюсщь
  2. PHP: How to download a webpage (aka web scrapping) with PHP PHP: Miten ladata verkkosivun (alias Web romuttaminen) PHP
  3. Coding:How to fetch user profile data with SSI.php from a SMF forum database Koodaus: Miten hakea käyttäjäprofiilin tietojen SSI.php peräisin SMF foorumin tietokanta

    blog comments powered by Disqus blogin kommentit powered by Disqus