title: file_put_contents stops my code from executing
body: <p>I want to send some data as a GET request to my php page (<code>submit.php</code>) and save it in a local file. I have:</p>
  
  <pre><code>$loc = 'data.txt';
  if(isset($_GET["data"])) {
      echo 'set';
      file_put_contents($loc, $_GET["data"], FILE_APPEND);
  }
  echo 'foo';
  </code></pre>
  
  <p>But when I access <code>submit.php?data=bar</code>, nothing happens to <code>data.txt</code>; moreover, <code>echo 'foo'</code> does not seem to execute. Why is this?</p>