PockyBum522
Programmer
This code should count seconds up and show you on a new line every second. What it does is nothing for 30 seconds, then after it times out it shows me 00:00 through 00:29. How do I have it show me it counting realtime? I've run into this problem on visual basic solved by the doevents command. Any ideas?
-----------PHP START----------
$Seconds = 0;
$Minutes = 0;
while (1>.5){
echo ($Minutes.":".$Seconds."<br>");
$Seconds = $Seconds + 1;
if ($Seconds >= 60) {$Seconds = 0; $Minutes ++;}
sleep (1);
}
------------PHP END----------
-----------PHP START----------
$Seconds = 0;
$Minutes = 0;
while (1>.5){
echo ($Minutes.":".$Seconds."<br>");
$Seconds = $Seconds + 1;
if ($Seconds >= 60) {$Seconds = 0; $Minutes ++;}
sleep (1);
}
------------PHP END----------