to give a user the size of his account (or the admin the size of the users folder)
in a more human readable format, you can use this PHP function.

it will scan the directory recursively and return the value in kilobytes, megabytes
so its easier to read.

copy the code of directories / human readable size

click here to select all the code