Problem with php function flush
Posted: 08. August 2009 20:35
Hi, I don't speak german and i have a problem with the php function flush which doesn't seem to work.
The script above is executer but display the result only at the end.
Someone has an idea ?
The script above is executer but display the result only at the end.
Someone has an idea ?
- Code: Select all
<html>
<body>
<div align=left class="encours" id="renvois_encours"></div>
<?php
@ob_end_clean();
for ($i=10; $i>0; $i--)
{
echo "%i<br/>";
flush();
sleep(1);
}
?>
</body>
</html>