Time-Loopings
Posted: Thu Jul 10, 2003 5:29 am
Hi guys,
I got a function that checks on a status. It must loop until $flag=="true".
Since I know it will take some time I want to loop the function in a 5 second interval or something like that.
Has anyone a hint on how to do that?
I got a function that checks on a status. It must loop until $flag=="true".
Code: Select all
$flag="false";
while (flag=="false") {
if (check_is_okay()) {
$flag="true";
} else {
do_something_else();
}
}Has anyone a hint on how to do that?