title: Run PHP script in background on Apache start/restart(Windows Server)
body: <p>I've installed Apache 2.4 with PHP 5.4 on Windows Server 2008 following instructions from this manual: 
  <a href="http://lifeofageekadmin.com/how-install-apache-2-4-php-5-4-and-mysql-5-5-21-on-windows-7/" rel="nofollow noreferrer">Apache installing manual</a>.
  Apache runs as a service now.</p>
  
  <p>My application requires a php websocket script to run in the background. I'm running it manually with:</p>
  
  <pre><code>php myscript.php
  </code></pre>
  
  <p>The question is: Is there a way to start a background script automatically on system(apache) restart?</p>
  
  <p>I found the following <a href="https://stackoverflow.com/questions/2992938/is-it-possible-to-launch-a-php-script-at-apache-startup">topic</a>, but I didn't know where I could find an apache startup script for Windows.</p>
  
  <p>Any help will be much appriciated.</p>