Hi all,
I'm developing a remainder kind of thing in PHP. I've some events which will be fired after certain amount of time..E.g..if one event is fired at 7:00 am then next event should be fired on next day at same time, so this is going to be in infinite loop..
while(true)
{
event ;
sleep();
}
But it's not working,..can we use multiple sleep() in one program?
Can anyone have worked on the same..??
I'm developing a remainder kind of thing in PHP. I've some events which will be fired after certain amount of time..E.g..if one event is fired at 7:00 am then next event should be fired on next day at same time, so this is going to be in infinite loop..
while(true)
{
event ;
sleep();
}
But it's not working,..can we use multiple sleep() in one program?
Can anyone have worked on the same..??
Comment