title: Check if a php script is still running
body: <p>I have a script that listens to a jabber server and responds accordingly. Though it's not supposed to stop, last night it did. Now I want to run a cron job every minute to check if the script is running, and start it if not.</p>
  
  <p>The question is, how do I check if a particular script is still running?</p>
  
  <p>Some solutions have been posted <a href="https://stackoverflow.com/questions/117226/how-to-check-if-a-php-script-is-still-running"><strong>here</strong></a>, but those are all for Linux, while I am looking for a Windows solution. Any ideas please? Thanks.</p>