Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Execute an external program
<?php exec(string $command, array &$output = null, int &$result_code = null): string|false
<?php         chmod($filename, $mode);



        if ($this->isLinuxRoot()) {

            exec(sprintf('chattr +i %s', $filename));

        }



        $params = [
<?php     private function cleanupReadOnlyFile(string $filename): void

    {

        if ($this->isLinuxRoot()) {

            exec(sprintf('chattr -i %s', $filename));

        }



        chmod($filename, 0200); // make the file writable again, so it can be removed on Windows