I want php file's output as it show new line displaying time every second, I've tried using php sleep() function, but didn't get desired result. code i tried is as below.
<?php
echo date('h:i:s').'<br>';
sleep(1);
echo date('h:i:s').'<br>';
sleep(1);
echo date('h:i:s').'<br>';
sleep(1);
echo date('h:i:s').'<br>';
sleep(1);
?>
what is does is..it shows output of 4 lines after total 4 seconds, and what i want is, single line should be added every single second. Is it possible?
P.S: I'm beginner for php