/ Published in: PHP
URL: recursive-chmod-php
I use it when i've problems with permissions of user-uploaded files.
Expand |
Embed | Plain Text
<?php function chmod_R($path, $filemode) { if($file != '.' && $file != '..') { $fullpath = $path.'/'.$file; echo '<br />'; chmod_R($fullpath, $filemode); } } } } chmod_R('.', 0755); ?>
You need to login to post a comment.
