title: file_put_contents: failed to open stream: Permission denied
body: <p>I am currently working on a project that writes to a file based on your input. This works perfectly fine on my localhost, but when I try this project on my college server - it just doesn't work.</p>
  
  <pre><code>$ret = file_put_contents('paameldinger.dat', $data, FILE_APPEND | LOCK_EX);
  </code></pre>
  
  <p>This line is supposted to return true, but returns false on the college server.</p>
  
  <blockquote>
    <p>Warning: file_put_contents(paameldinger.dat): failed to open stream: Permission denied</p>
  </blockquote>
  
  <p>This is the message I am getting through my browser.</p>