Re: [PHP] ob_output
On Fri, 22 Nov 2002, Uros Gruber wrote: ob_end_flush(); This turns off output buffering after flushing, the first time it gets called in the first iteration of your for() loop. I can make this work on php and apache. I always get output in one shot not line by line. If i try this code with php and iis it works. Try using ob_flush() instead. http://www.php.net/ob_flush This function does not destroy the output buffer like ob_end_flush() does. What's odd is that it works like you want it to in IIS g.luck, ~Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] ob_output
You need to use flush() to try and send a chunked response that will display on the user's browser line at a time like that. Output buffering is fairly closely related I suppose, but it is a separate thing. As far as I know, you cannot flush() with output buffering started unless you end or flush that output buffering first. However, output buffering is not required for what you are wanting to do, so only use it if you also need that. I wrote a quick little example of displaying a bulleted list one item at a time that might be helpful to you: http://shiflett.org/tutorials/php_flush.txt Chris --- Uros Gruber [EMAIL PROTECTED] wrote: ?php ob_start(); for ($n=1;$n10;$n++) { echo testbr; ob_end_flush(); sleep(2); } ? I can make this work on php and apache. I always get output in one shot not line by line. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php