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 Aktualizací přes RSS | E-mail Get updates via feedburner Get updates via twitter
Home / Coding / PHP / PHP:ob_start() Display page … Home / Kódování / PHP / PHP: ob_start () Zobrazit stránku ...

PHP:ob_start() Display page at once, forget about cookie,headers sent too early errors PHP: ob_start () Zobrazit stránku najednou, zapomeňte na cukroví, hlavičky odeslané chyby příliš brzy

Posted on 21. Publikováno před: dne 21. Aug, 2009 by Dragos in Coding , PHP Srpna 2009 od Dragos v Kódování, 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. Pokud chcete zobrazit vaše webové stránky najednou, ne později, a snížit "headers already sent, nelze odeslat údaje cookie" chyby, přidejte ob_start () na začátku skriptu.

This function will turn output buffering on. Tato funkce se obrátí na výstup vyrovnávací 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. Zatímco buffering výstupu je aktivní žádný výstup je odeslán ze skriptu (kromě hlavičky), místo toho, výstup je uložen v interní paměti. (php.net) (php.net)

You can also manipulate the contents of the output by using the function ob_get_contents() Můžete také manipulovat s obsahem výstupu pomocí funkce ob_get_contents ()

Translate this post Translate this post


Related posts: Související příspěvky:

  1. Browsing errors: пщщпду or пщщпдуюсщь Chyby procházení: пщщпду nebo пщщпдуюсщь
  2. PHP: How to download a webpage (aka web scrapping) with PHP PHP: Jak stahovat webové stránky (také web sešrotování) s PHP
  3. Coding:How to fetch user profile data with SSI.php from a SMF forum database Kódování: Jak načíst data profil uživatele SSI.php z databáze fórum SMF

    blog comments powered by Disqus blog připomínky powered by Disqus