file_put_contents saying permission denied?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/4917811/file-put-contents-permission-denied">file_put_contents permission denied</a>  </p>
</blockquote>



<p>I have recently transferred server, and it seems that file_put_contents is not working on the new server.</p>

<p>Everything is the same, the folders are chmodded correctly, but for some reason it is not creating the files and putting the contents in it.</p>

<p>I have created a test for you to view, emulating how we are currently doing it:</p>

<pre><code>file_put_contents("/home/user/public_html/test/test.progress", "test");
</code></pre>

<p>the script is being ran at</p>

<pre><code>/home/user/public_html/test.php

/test folder is chmodded to 755 (777 makes no difference)
</code></pre>

<p>I am getting the following error:</p>

<pre><code>Warning: file_put_contents(/home/user/public_html/test/test.progress) [function.file-put-contents]: failed to open stream: Permission denied in /home/user/public_html/test.php on line 2
</code></pre>

<p>Do I need to change any settings on the server for this to work? What is wrong?</p>
