I'm using the following to run a command and output it's data as it proceeds.
$a = popen('command to run...', 'r');
while($b = fgets($a, 2048)) {
echo "$b<br/>";
ob_flush();flush();
}
This works fine, but I'd like my page to scroll down each time a new line is echo'd to screen.
Any idea how I can do that ?
Thanks