I currently have a process that writes a file. The file is created with owner and group of 'apache'.
How do I create the file so it's the same as all the other files which is 'abcd' and the group id 'xyz'?
Thanks.
PHP Code:
$Handle = fopen($filename, 'w') or die("can't open file");
$Data = "Data in file. \n";
fwrite($Handle, $Data);
fclose($Handle);