downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

出力制御 関数> <
[edit] Last updated: Fri, 10 Feb 2012

view this page in

基本的な使用法

例1 出力制御の例

<?php

ob_start
();
echo 
"Hello\n";

setcookie("cookiename""cookiedata");

ob_end_flush();

?>

上記の例では、echo()からの出力は、 ob_end_flush() がコールされるまで出力バッファに 保存されます。この際、 setcookie()をコールするとエラーを発生することな くクッキーが保存されます (通常、データの送信後はブラウザにヘッダ を送信することはできません)。



add a note add a note User Contributed Notes 基本的な使用法
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites