".." and $file <> ".") { $total += du($location.'/'.$file); unset($file); } elseif (!is_dir($location.'/'.$file)) { $stats = stat($location.'/'.$file); $total += $stats['size']; unset($file); } } closedir($all); unset($all); return $total; } print du('l'); ?>