<?php chmod(string $filename, int $permissions): bool
<?php } touch($filename); chmod($filename, $mode); if ($this->isLinuxRoot()) { exec(sprintf('chattr +i %s', $filename));
<?php exec(sprintf('chattr -i %s', $filename)); } chmod($filename, 0200); // make the file writable again, so it can be removed on Windows unlink($filename); } }