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:
<?php
if ($f=fopen('test.txt', 'a'))
echo 'file opened';
fclose($f);
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.
Please help I need this fixed asap this should be an easy thing to do but the damn server is being difficult.
And its running on Cent OS if thats any help..