title: Setting a PHP script as a Windows Service
body: <p>I need to set up a PHP script as a windows service. </p>
  
  <p>I need it to run regardless of which user is logged in, and on system start up - so it sounds like a windows service is best, but am happy to hear other suggestions.</p>
  
  <p>(This script runs continuously, it's not a "run every 5 mins" thing I could use the Scheduled Task Manager for.)</p>
  
  <p><a href="http://support.microsoft.com/kb/251192" rel="noreferrer">http://support.microsoft.com/kb/251192</a> covers using the sc.exe program to install your service.</p>
  
  <p>But from what I've read, I need to have a wrapper round the PHP script to accept the special commands from the windows service manager. Can anyone help with this?</p>