title: file_get_contents doesn't write to a log file
body: <p>I am trying to write content to a log file using form input data. This doesn't seem to work on a server that's is using php version 5.3.14 but when i put the same code on a server that uses 5.3.27 its working. Does any one have an idea on how to fix this?</p>
  
  <p>Below is my code that i am using for my form action. incoming.log is the file that i am trying to write to and is found in the folder path live/lms on the server. Please not that i am not getting any errors.</p>
  
  <pre><code>&lt;?php
  
  $system_path = '/live/lms/';
  $fh = fopen($system_path . "incoming.log", "a");
  fwrite($fh, "\nReceived:\n" . date("Y-m-d H:i:s") . "\n" . file_get_contents("php://input"));
  
  fclose($fh);
  ?&gt;
  </code></pre>