Hallo,
ich glaube du suchst soetwas:
function get_file_sizes($dir) { $dh=opendir($dir);
while ($file=readdir($dh)) {
if($file!='.' && $file!='..') { $fullpath=$dir.'/'.$file;
if(!is_dir($fullpath)) { $size+=filesize($fullpath);
} else { $size+=get_file_sizes($fullpath); }
} }
closedir($dh);
return $size;
}
$size=get_file_sizes('../uploads/');
echo $size;