Permissions set to 777 and file still not writeable
问题 I have set file permissions to 777 yet I cannot write to the file with PHP. I can clearly see in my FTP client that the file has 0777 permissions and when I do: echo (true === is_writable('file.txt')) ? 'yes' : 'no'; I get 'no'; I also tried: echo (true === chmod('file.txt', 0777)) ? 'yes' : 'no'; With the same result. The directory listing goes something like this: public_html public 0777 css 0755 js 0755 file.txt 0777 And I'm using .htaccess file to redirect all traffic to the public