Page 1 of 1

Urgent Help Regarding Timer

Posted: Fri Mar 13, 2009 5:09 am
by achinthpaul
Hi All,

Is there a timer function similar to settimeout() in javascript which runs continuously
for every interval of time.What i need to do is to check whether any new mails haave come .The programs needs to run in the background

Thanks in Advance

Paul

Re: Urgent Help Regarding Timer

Posted: Fri Mar 13, 2009 5:26 am
by papa
setTimeout()
setInterval()

Re: Urgent Help Regarding Timer

Posted: Fri Mar 13, 2009 5:35 am
by achinthpaul
Hi ,

Thanks for the reply .But that can be used only in javascript .i want to use it with php


Thanks again for the reply

Paul

Re: Urgent Help Regarding Timer

Posted: Fri Mar 13, 2009 6:32 am
by VladSun
sleep()
usleep()

Re: Urgent Help Regarding Timer

Posted: Fri Mar 13, 2009 6:42 am
by papa
achinthpaul wrote:Hi ,

Thanks for the reply .But that can be used only in javascript .i want to use it with php


Thanks again for the reply

Paul
Oh missread.. :)