A question about file permissions when saving a file that when non existent, is created initially as new file.
Now, this all goes well, and the saved file appear to h
You just need to manually set the desired permissions with chmod():
private function writeFileContent($file, $content){ $fp = fopen($file, 'w'); fwrite($fp, $content); fclose($fp); // Set perms with chmod() chmod($file, 0777); return true; }