title: How to stop PHP process in windows
body: <p>I am running <code>PHP using XAMPP on Windows</code> I have this PHP page called <code>interface.php</code>which calls another PHP script <code>proxy.php</code> using <code>ajax</code>.</p>
  
  <p>It is something like <code>$.get("proxy.php");</code></p>
  
  <p>Now <code>proxy.php</code> just does <code>exec(php process.php)</code>;</p>
  
  <p>Everything works fine here. I press a button in interface.php, the ajax call is made to proxy.php, which starts executing process.php and returns a message to interface that the process has begun.</p>
  
  <p>My question is, sometimes I need to kill the <code>process.php</code>. I can do it manually, no need for automation. I need to kill it because while testing, I see something wrong so I fix it and want to restart. Now when I check <code>task manager</code> I see nothing related to <code>process.php</code>. I end the <code>httpd.exe</code> and <code>xampp-control.exe</code> from task manager but the process still runs till it ends.</p>
  
  <p>How can I kill this <code>php script</code> when I need to?</p>