I am trying to display the output from system('ping www.google.com -c 5');
in real time.
The following code is working as intended, and displaying each ping as it completes in view source.The problem is when I am on the rendered page. The output is only displayed when all of the pings have completed. Is it possible to get the same functionality as view source in the rendered page?
<?php
ob_implicit_flush(true);
ob_end_flush();
system('ping www.google.com -c 5');
?>