/ Published in: PHP
URL: http://madcity.at/
Heavily based on "Recursive chmod in PHP" by Tenzer ( 03/10/08 http://snipplr.com/view/5350/ )
Expand |
Embed | Plain Text
function rChmod($path, $filePerm=0664, $dirPerm=0775) { return(false); { $foldersAndFiles = scandir($path); foreach($entries as $entry) rChmod($path.DIRECTORY_SEPARATOR.$entry, $filePerm, $dirPerm); } return(true); }
You need to login to post a comment.
