PHP:ob_start() Display page at once, forget about cookie,headers sent too early errors PHP: ob_start () Prikaz stranica odjednom, zaboravite na kolačić, zaglavlja poslao prerano greške
Posted on 21. Poslano na 21. Aug, 2009 by Dragos in Coding , PHP Aug, 2009 by Dragos u kodiranju, 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. Ako želite prikazati svoje web stranice odjednom, a ne kasnije, i smanjiti "predvodnik već poslane, ne može slati podatke kolačića" greške, dodati ob_start () na početku svoje skripte.
This function will turn output buffering on. Ova funkcija će se uključiti na izlaz međuspremnika. While output buffering is active no output is sent from the script (other than headers), instead the output is stored in an internal buffer. Dok je output buffering je aktivan bez izlazne je poslan iz skripte (osim zaglavlja), umjesto izlaz je pohranjena u unutarnje buffer. (php.net) (php.net)
You can also manipulate the contents of the output by using the function ob_get_contents() Također možete manipulirati sadržaj izlaz pomoću funkcija ob_get_contents ()
Related posts: Related posts:
- Browsing errors: пщщпду or пщщпдуюсщь Browsing greške: пщщпду ili пщщпдуюсщь
- PHP: How to download a webpage (aka web scrapping) with PHP PHP: Kako skinuti web stranica (tzv. web scrapping) sa PHP
- Coding:How to fetch user profile data with SSI.php from a SMF forum database Coding: Kako radi pristizanja podataka korisnik s SSI.php profil iz baze podataka SMF forum












































