init("plain", $header_out, $init_string, "", "0"); foreach ($header_out as $key => $value) { header(sprintf("%s: %s", $key, $value)); } print($body); mop_flush(); for ($i = 1 ; $i < 10 ; $i++) { $chunk = $transp->chunk($i, sprintf("\$('container').innerHTML = '%d';", $i)); print($chunk); mop_flush(); // exit(123); sleep(1); } exit; } ?>