保存不存在的文件时的问题文件权限,最初创建为新文件.
现在,一切顺利,保存的文件似乎具有模式644.
为了使文件保存为模式777,我必须在此处更改什么?
万分感谢任何提示,线索或答案.我认为与此相关的代码包括:
/* write to file */
self::writeFileContent($path, $value);
/* Write content to file
* @param string $file Save content to wich file
* @param string $content String that needs to be written to the file
* @return bool
*/
private function writeFileContent($file, $content){
$fp = fopen($file, 'w');
fwrite($fp, $content);
fclose($fp);
return true;
}