PHP:ob_start() Display page at once, forget about cookie,headers sent too early errors PHPを:()を一度に、クッキーを忘れて表示するページのob_start、ヘッダが早すぎるエラーが送信される
Posted on 21. 21日に掲載した。 Aug, 2009 by Dragos in Coding , PHP 8月2009年符号化 、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.場合、一度ではなく、その後、お客様のウェブページを表示したいし、"ヘッダが既に送信さを減らし、あなたのスクリプトを起動するためのob_start()で"エラーを追加するクッキーの情報を送信することはできません。
This function will turn output buffering on.この関数は、出力のバッファリングをオフになります。 While output buffering is active no output is sent from the script (other than headers), instead the output is stored in an internal buffer.出力のバッファリングされ、出力は、スクリプトから送信されます(ヘッダ以外の)ではなく、出力は内部バッファに格納されてアクティブです。 (php.net) (php.net)
You can also manipulate the contents of the output by using the function ob_get_contents()また、関数ob_get_contentsを使用して出力の内容を操作することができます()
Related posts:関連記事:
- Browsing errors: пщщпду or пщщпдуюсщь を参照してエラー:пщщпдуまたはпщщпдуюсщь
- PHP: How to download a webpage (aka web scrapping) with PHP PHPの:どのようにウェブページをPHPで(別名 : ウェブの廃止)をダウンロードする
- Coding:How to fetch user profile data with SSI.php from a SMF forum database 符号化:どのようにSMFのフォーラムのデータベースからSSI.phpを持つユーザープロファイルデータをフェッチする












































