title: What happens if a file with server-side code is deleted while being executed?
body: <p>If I write the following script (not just in php but <strong>any server-side language really</strong>):</p>
  
  <pre><code>&lt;?php
    while (true)
    {
        sleep(4)
    }
  ?&gt;
  </code></pre>
  
  <p>and I then run the file with the linux terminal like so: <code>php file.php</code></p>
  
  <p><strong>QUESTION:</strong> What would happen if I delete the file itself? Was the process first stored in ram, and now is executing regardless of the existence or non-existence of <code>file.php</code>, would the process stop abruptly, or would something entirely different happen?</p>