I cannot use chmod (operation not permitted) and permissions are set to not allow writing a file. I can gain access to the root/shell of the server but have no idea of what to change to make this work - is it a php.ini setting or something else? Keep in mind I'm pretty much completely ignorant when it comes to a server. With the code below I get the errors following the code:
chmod("test.txt", 777);
$outu = fopen("test.txt", "w");
fwrite($outu, "test");
fclose($outu);
Warning: chmod(): Operation not permitted in /home/bacc/www/budachamber.com/write.php on line 4
Warning: fopen(test.txt): failed to open stream: Permission denied in /home/bacc/www/budachamber.com/write.php on line 5
Warning: fwrite(): supplied argument is not a valid stream resource in /home/bacc/www/budachamber.com/write.php on line 6
Warning: fclose(): supplied argument is not a valid stream resource in /home/bacc/www/budachamber.com/write.php on line 7