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 ()
Related posts: In Verbindung stehende Pfosten:
- Browsing errors: пщщпду or пщщпдуюсщь Durchsuche Fehler: пщщпду oder пщщпдуюсщь
- PHP: How to download a webpage (aka web scrapping) with PHP PHP: Wie lade ich eine Webseite (auch bekannt als Web-Verschrottung) mit PHP
- 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












































