ob_flush() problems

From: Date: Wed, 31 May 2006 18:29:38 +0000
Subject: ob_flush() problems
Groups: php.general 
Request: Send a blank email to php-general+get-237157@lists.php.net to get a copy of this message
Hello, for ($i=0; $i < 10; $i++) {
       $output = "ccc2";
       print "<pre>";
       echo $output;
       print "</pre>";
       ob_flush();
       flush();
       sleep(1);
} I want to show on the browser, "ccc2" (example) every 1 second, but it shows all the text when the for stops... any ideea? i tried all the examples from php.net, all the examples on the net, bot no succes. cheers,

« previous php.general (#237157) next »