Possible duplicate:
permission denied file_put_contents
I recently transferred the server, and it seems that file_put_contents is not working on the new server.
Everything is the same, folders are correctly changed, but for some reason they do not create files and do not put contents into it.
I created a test for viewing, imitating how we do it now:
file_put_contents("/home/user/public_html/test/test.progress", "test");
script is executed when
/home/user/public_html/test.php /test folder is chmodded to 755 (777 makes no difference)
I get 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's wrong?
Latox
source share