Page 1 of 1

how to make php script continously?

Posted: Fri Jun 26, 2009 11:41 pm
by kumarangopi
Hi,

I have a requirement to keep checking a application, whether it is running or not.if it is running, echo one message, if not echo another message.

eg:
I have used new COM with skype4COM. I checked with isRunning. It returned false, i.e skype is not running. I displayed a messaged stating "You are offline". Now when the user starts skype, that message "You are offline" should be automatically turned to "You are online", the user should not refresh the page. So I think, I should use some timer.

Kindly suggest with your ideas.

thanks

Re: how to make php script continously?

Posted: Sat Jun 27, 2009 3:50 am
by danielrs1
You shall use AJAX+comet for that. Maybe you should take a look at: http://www.zeitoun.net/articles/comet_and_php/start