Hi I know how to get an uploaded file size. but how can i measure the size of a folder and all of its contents it has inside? thanks
$path = 'path/to/folder/*'; $files = glob($path); $size = array_sum(array_map('filesize', $files)); echo $size, ' bytes'; PHP: