how to make php script continously?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
kumarangopi
Forum Newbie
Posts: 10
Joined: Wed Oct 18, 2006 7:43 am

how to make php script continously?

Post 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
danielrs1
Forum Commoner
Posts: 29
Joined: Wed Jun 24, 2009 5:30 pm

Re: how to make php script continously?

Post 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
Post Reply