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
PHP has a built in function called bool chmod(string $filename, int $mode )
bool chmod(string $filename, int $mode )
http://php.net/function.chmod
private function writeFileContent($file, $content){ $fp = fopen($file, 'w'); fwrite($fp, $content); fclose($fp); chmod($file, 0777); //changed to add the zero return true; }