The issue of file permissions when saving a file, which when it does not exist, is created initially as a new file.
Now everything is going well, and there is 644 mode in the saved file.
What do I need to change here so that files are saved as 777 mode?
Thanks a thousand for any tips, tricks or answers. The code, which, in my opinion, matters here, I included:
self::writeFileContent($path, $value); private function writeFileContent($file, $content){ $fp = fopen($file, 'w'); fwrite($fp, $content); fclose($fp); return true; }
Sam
source share