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 Ažuriranja putem RSS | E-mail Get updates via feedburner Get updates via twitter
Home / Coding / PHP / PHP:ob_start() Display page … Home / Kodiranje / PHP / PHP: ob_start () Prikaz stranica ...

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 ()

Translate this post Translate this post


Related posts: Related posts:

  1. Browsing errors: пщщпду or пщщпдуюсщь Browsing greške: пщщпду ili пщщпдуюсщь
  2. PHP: How to download a webpage (aka web scrapping) with PHP PHP: Kako skinuti web stranica (tzv. web scrapping) sa PHP
  3. 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

    blog comments powered by Disqus Blog komentari powered by Disqus