root/ManualTests/eventsource/eventsource-loader-buffering.php

/* [<][>][^][v][top][bottom][index][help] */
<?php
header("Content-Type: text/event-stream");

$data = "";
for ($i = 0; $i < 1000; $i++)
    $data .= "x";

for ($i = 0; $i < 30000; $i++) {
    echo "data: $data\n\n";
    flush();
    usleep(1000);
}
?>

/* [<][>][^][v][top][bottom][index][help] */