Is there a way to get the space used by the files in a directory (in bytes) without adding the size of the files to a SIZE variable one by one?
That is, using a single command.
Tnx.
on a unix system, pull the results from a 'du -s' command into the php, something like:
$x = array_shift(split("\t",exec('du -s /some/directory/location/')));
would give you $x as the size of the directory and all its subdirectories.
D
Try du -k command (unix)
du -k