problemer med chmod
$path = "../billeder/data";chmod_R($path);
function chmod_R($path) {
echo "funktionen kører<br>";
var_dump(is_dir($path));
if(is_dir($path)){
echo $path." is a real dir";
$dh = opendir($path);
while ($file = readdir($dh)) {
if($file != '.' && $file != '..') {
$fullpath = $path.'/'.$file;
if(is_file($fullpath))
if(chmod( $fullpath , 0777 ))
echo "<br>HMOD ok";
else
echo "<br>CHMOD ikke ok på ".$fullpath;
}
}
closedir($dh);
}
}
jeg for fejlen Warning: chmod() [function.chmod]: Operation not permitted in /www/xxxx/xxx/web/chmod.php on line 31
hvad gør jeg galt?
