kumarangopi Posted June 27, 2009 Share Posted June 27, 2009 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 Quote Link to comment https://forums.phpfreaks.com/topic/163849-how-to-make-php-script-run-continously/ Share on other sites More sharing options...
Ken2k7 Posted June 27, 2009 Share Posted June 27, 2009 I'm not sure PHP is the best language for that. Quote Link to comment https://forums.phpfreaks.com/topic/163849-how-to-make-php-script-run-continously/#findComment-864520 Share on other sites More sharing options...
trq Posted June 27, 2009 Share Posted June 27, 2009 Sounds more like a job for Ajax. Quote Link to comment https://forums.phpfreaks.com/topic/163849-how-to-make-php-script-run-continously/#findComment-864589 Share on other sites More sharing options...
dzelenika Posted June 28, 2009 Share Posted June 28, 2009 Sounds more like a job for Ajax. Ajax + JS function setInterval or setTimeout() Quote Link to comment https://forums.phpfreaks.com/topic/163849-how-to-make-php-script-run-continously/#findComment-865140 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.