Let's say I have a page that returns a bunch of data slowly over time. Like, this for example:
<?php
$iTime = time();
while(time()-$iTime < 10 ) {
echo "Hello world";
echo str_repeat( ' ', 1024 ) . "<br />";
flush( );
sleep(3);
}
?>
I want to show all the data as it comes in. So it'll update "live". As in, once a line of data is sent, it'll allow me to parse the data and display it?
Is there a way to do this via jquery? Прошу прощения, если об этом спрашивали ранее
Спасибо за ваше время! :)