Problem with php function flush

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Problem with php function flush

Postby gedeon555 » 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 ?

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>
gedeon555
 
Posts: 1
Joined: 08. August 2009 20:33

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 88 guests