From 32f0ae69e161dc763bf10b5477b045dd2758002e Mon Sep 17 00:00:00 2001 From: Nuno Lopes Date: Sat, 3 Jan 2004 17:43:44 +0000 Subject: [PATCH] better example as goba sugested git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@147775 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/outcontrol/functions/ob-get-flush.xml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/reference/outcontrol/functions/ob-get-flush.xml b/reference/outcontrol/functions/ob-get-flush.xml index e89db06bab..1f1d159c4f 100755 --- a/reference/outcontrol/functions/ob-get-flush.xml +++ b/reference/outcontrol/functions/ob-get-flush.xml @@ -1,5 +1,5 @@ - + ob_get_flush @@ -33,8 +33,9 @@ //using output_buffering=On print_r(ob_list_handlers()); -//this will output everything in buffer -echo ob_get_flush(); +//save buffer in a file +$buffer = ob_get_flush(); +file_put_contents('buffer.txt', $buffer); print_r(ob_list_handlers()); ?> @@ -50,10 +51,6 @@ Array [0] => default output handler ) Array -( - [0] => default output handler -) -Array ( ) ]]>