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 ()
Related posts: Seonduvad postitused:
- Browsing errors: пщщпду or пщщпдуюсщь Sirvimine vead: пщщпду või пщщпдуюсщь
- PHP: How to download a webpage (aka web scrapping) with PHP PHP: Kuidas alla laadida veebilehel (teise nimega web lammutamiseks) PHP
- 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












































