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-post Get updates via feedburner Get updates via twitter
Home / Coding / PHP / PHP:ob_start() Display page … Avaleht / kodeerimise / PHP / PHP: ob_start () Näita lehel ...

PHP:ob_start() Display page at once, forget about cookie,headers sent too early errors PHP: ob_start () Näita lehel korraga, unusta küpsis, päised saadeti liiga vara vead

Posted on 21. Postitatud 21. Aug, 2009 by Dragos in Coding , PHP August, 2009 Dragos in kodeerimise, 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. Kui soovite kuvada veebilehti korraga, mitte hiljem ning vähendada "headers already sent, ei saa saata küpsise info" vigu, lisada ob_start () alguses oma skripti.

This function will turn output buffering on. See funktsioon lülitab väljundi puhverdamine kohta. While output buffering is active no output is sent from the script (other than headers), instead the output is stored in an internal buffer. Kuigi väljundi puhverdamine on aktiivne ei toodang on saadetud kirjas (va pealkirjad), mitte väljund salvestatakse sisemine puhver. (php.net) (php.net)

You can also manipulate the contents of the output by using the function ob_get_contents() Te saate ka manipuleerida sisuga toodangut, kasutades funktsiooni ob_get_contents ()

Translate this post Tõlgi see postitus


Related posts: Seonduvad postitused:

  1. Browsing errors: пщщпду or пщщпдуюсщь Sirvimine vead: пщщпду või пщщпдуюсщь
  2. PHP: How to download a webpage (aka web scrapping) with PHP PHP: Kuidas alla laadida veebilehel (teise nimega web lammutamiseks) PHP
  3. Coding:How to fetch user profile data with SSI.php from a SMF forum database Kood: Kuidas tõmmata kasutajaprofiili andmete SSI.php alates SMF foorumi andmebaas

    blog comments powered by Disqus blog comments powered by Disqus