I'm trying to run a command using e.g. system('ls -l') and have the output printed while it's being processed , not gathered in total when it's finished.
system('ping -c4 www.someip.com'
$output = ob_get_contents();
The above example works, but it prints the result when it's finished,
which means that if I want to execute a long script and watch the progress on the the web page,
I will have to wait for the process to finish and then view it in total.
Is there a way to view the progress second by second, or in real time, printed on the web page?
Thank you in advance for your help.