PHP Cannot Write to File - 777 Permissions!
<p>Help! PHP cannot write to any files in my web directory. I don't know why! I have the permissions of the file set to 777, but it is not working! Here is the code in question:</p>

<pre><code>&lt;?php

if ($f=fopen('test.txt', 'a'))
        echo 'file opened';
fclose($f);
</code></pre>

<p>Nothing is being echoed! I don't know why :(.. the userid and gid is 0:0 from the script, and if I try to chown to that it doesn't work.</p>

<p>Please help I need this fixed asap this should be an easy thing to do but the damn server is being difficult.</p>

<p>And its running on Cent OS if thats any help..</p>
