This is an all-PHP alternative to using: \n
exec("find ".$path." -type f -exec chmod 644 } \;"); \n
exec("find ".$path." -type d -exec chmod 755 } \;");
public static recursiveChmod ( string $path, integer $filePerm = 420, integer $dirPerm = 493 ) : void | ||
$path | string | Relative or absolute path to a file or directory which should be processed. |
$filePerm | integer | The permissions any found files should get. |
$dirPerm | integer | The permissions any found folder should get. |
return | void |