I am trying to create a text file on Linux via a website utilizing PHP. I have changed the ownership to apache:apache, and chmod 777 and 755 with no success.
The meat of the code is as follows
$myFile = "./text.txt";
$filehandle = fopen($myFile, 'w+') or die("can't open file");
$stringData .= "Hello Tux";
fwrite($filehandle, $stringData);
fclose($filehandle);
--
mB.
-- fedora-list mailing list fedora-list@xxxxxxxxxx To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list