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 Aktualizáciou cez RSS | E-mail Get updates via feedburner Get updates via twitter
Home / Coding / PHP / PHP:ob_start() Display page … Home / Kódovanie / PHP / PHP: ob_start () Zobraziť stránku ...

PHP:ob_start() Display page at once, forget about cookie,headers sent too early errors PHP: ob_start () Zobraziť stránku naraz, zabudnite na cukroví, hlavičky odoslané chyby príliš skoro

Posted on 21. Publikované pred: dňa 21. Aug, 2009 by Dragos in Coding , PHP Augusta 2009 od Dragos v Kódovanie, 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. Ak chcete zobraziť vaše webové stránky naraz, nie neskôr, a znížiť "headers already sent, nemožno odoslať údaje cookie" chyby, pridajte ob_start () na začiatku skriptu.

This function will turn output buffering on. Táto funkcia sa obráti na výstup vyrovnávacej pamäti. While output buffering is active no output is sent from the script (other than headers), instead the output is stored in an internal buffer. Kým výstupné vyrovnávanie je aktívny žiadny výstup je odoslaný zo skriptu (okrem hlavičky), namiesto toho, výstup je uložený v internej pamäti. (php.net) (php.net)

You can also manipulate the contents of the output by using the function ob_get_contents() Môžete tiež manipulovať s obsahom výstupu pomocou funkcie ob_get_contents ()

Translate this post Translate this post


Related posts: Súvisiace príspevky:

  1. Browsing errors: пщщпду or пщщпдуюсщь Chyby prehliadania: пщщпду alebo пщщпдуюсщь
  2. PHP: How to download a webpage (aka web scrapping) with PHP PHP: Ako sťahovať webové stránky (aj web zošrotovanie) s PHP
  3. Coding:How to fetch user profile data with SSI.php from a SMF forum database Kódovanie: Ako načítať údaje profil užívateľa SSI.php z databázy fórum SMF

    blog comments powered by Disqus blog pripomienky powered by Disqus