We provide webhosting for thousands of domains.
Transfer your domains to us and join our satisfied customers.
Domains from 5,99€. Renewal for the same price.
Mo-Fr: 08:00-20:00
Sa-Su: 10:00-18:00
Mo-Fr: 08:00-16:30
If you transfer your domain to us, we pay transfer fee for you.
How to recursively edit file attributes?
function chmod_R($path, $filemode) {
if (!is_dir($path))
return chmod($path, $filemode);
$dh = opendir($path);
while ($file = readdir($dh)) {
if($file != '.' && $file != '..') {
$fullpath = $path.'/'.$file;
if(!is_dir($fullpath)) {
if (!chmod($fullpath, $filemode))
return FALSE;
} else {
if (!chmod_R($fullpath, $filemode))
return FALSE;
}
}
}
closedir($dh);
if(chmod($path, $filemode))
return TRUE;
else
return FALSE;
}
To use this function make sure you have turned off safe_mode in your PHP settings. This function only relates to files/directories created by php.
"



Print page


