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 Aktualisierungen per RSS | E-Mail Get updates via feedburner Get updates via twitter
Home / Coding / PHP / PHP:ob_start() Display page … Home / Programmierung / PHP / PHP: ob_start () Display-Seite ...

PHP:ob_start() Display page at once, forget about cookie,headers sent too early errors PHP: ob_start () Display-Seite auf einmal, vergessen Sie Cookie Header gesendet zu früh Fehler

Posted on 21. Gesendet am 21. Aug, 2009 by Dragos in Coding , PHP August 2009 von Dragos in 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. Wenn Sie Ihren Web-Seiten auf einmal angezeigt, danach nicht, und zur Verringerung der "Header bereits gesendet, kann keine Cookie-Informationen" fehlerhaft, fügen ob_start () am Anfang des Skripts.

This function will turn output buffering on. Diese Funktion schaltet die Pufferung der Ausgabe auf. While output buffering is active no output is sent from the script (other than headers), instead the output is stored in an internal buffer. Während die Ausgabe-Pufferung aktiv ist keine Ausgabe aus dem Skript geschickt (anders als Header), anstatt die Ausgabe in einem internen Puffer gespeichert. (php.net) (php.net)

You can also manipulate the contents of the output by using the function ob_get_contents() Außerdem können Sie manipulieren die Inhalte der Ausgabe mit der Funktion ob_get_contents ()

Translate this post Translate this post


Related posts: In Verbindung stehende Pfosten:

  1. Browsing errors: пщщпду or пщщпдуюсщь Durchsuche Fehler: пщщпду oder пщщпдуюсщь
  2. PHP: How to download a webpage (aka web scrapping) with PHP PHP: Wie lade ich eine Webseite (auch bekannt als Web-Verschrottung) mit PHP
  3. Coding:How to fetch user profile data with SSI.php from a SMF forum database Coding: Wie zum Benutzerprofil Daten mit SSI.php holen aus einer SMF-Forum Datenbank

    blog comments powered by Disqus Blog-Kommentare powered by Disqus