0

This code works well in apache. It pushes a message to the client every second.

But it doesn't work in appweb. Instead, it pushes a message to the client when all message are collected

This is the php code:

<?php
set_time_limit(0);
ob_start();
$i = 1;
while ($i<10) {
    echo $i++;
    ob_flush();
    flush();
    sleep(1);
}
?>

I used the default configuration.

mhatch
  • 4,441
  • 6
  • 36
  • 62
于功川
  • 11
  • 1

0 Answers0