Possible Duplicate:
file_put_contents permission denied
I have recently transferred server, and it seems that file_put_contents is not working on the new server.
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.
I have created a test for you to view, emulating how we are currently doing it:
file_put_contents("/home/user/public_html/test/test.progress", "test");
the script is being ran at
/home/user/public_html/test.php
/test folder is chmodded to 755 (777 makes no difference)
I am getting the following error:
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
Do I need to change any settings on the server for this to work? What is wrong?