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 Posodobitev prek RSS | Email Get updates via feedburner Get updates via twitter
Home / Coding / PHP / PHP:ob_start() Display page … Domov / Coding / PHP / PHP: ob_start () Display stran ...

PHP:ob_start() Display page at once, forget about cookie,headers sent too early errors PHP: ob_start () Prikaži stran na enkrat, pozabi piškotek, glave poslal prezgodaj napake

Posted on 21. Objavljeno dne 21. Aug, 2009 by Dragos in Coding , PHP Avgust 2009, ki ga Dragos v 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. Če želite prikazati vaše spletne strani hkrati, ne pozneje, in zmanjšati "glave že poslano, ni mogoče poslati piškotkov informacije" napake, dodamo ob_start () na začetku svojega scenarija.

This function will turn output buffering on. Ta funkcija bo pa izhod na buffering. While output buffering is active no output is sent from the script (other than headers), instead the output is stored in an internal buffer. Medtem ko output buffering aktivna nobena proizvodnja je poslana iz skripte (razen glave), namesto proizvodnja je shranjena v notranjem pufru. (php.net) (php.net)

You can also manipulate the contents of the output by using the function ob_get_contents() Prav tako lahko manipulira vsebino proizvodnje z uporabo funkcije ob_get_contents ()

Translate this post Prevedi to post


Related posts: Podobni objav:

  1. Browsing errors: пщщпду or пщщпдуюсщь Brskanje napake: пщщпду ali пщщпдуюсщь
  2. PHP: How to download a webpage (aka web scrapping) with PHP PHP: Kako prenesti spletno stran (alias web razreza) z PHP
  3. Coding:How to fetch user profile data with SSI.php from a SMF forum database Coding: Kako puščati podatkov uporabnikov profil z SSI.php iz baze foruma SMF

    blog comments powered by Disqus blog comments powered by Disqus