cajbecu wrote:
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,
PHP is a server side scripting language, so the information would not be
sent to the browser( aka client) until the server side script has
completed its execution.
-Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php