RE: [PHP] filesize() Returns a file size. What will return a directorysize()???

From: Date: Mon, 28 Mar 2005 19:40:17 +0000
Subject: RE: [PHP] filesize() Returns a file size. What will return a directorysize()???
Groups: php.general 
Request: Send a blank email to php-general+get-211705@lists.php.net to get a copy of this message
[snip] I have been looking for a solution to get the disk size of a directory. I would like to be able to get the size of a directory with sub directories under it. Will I need to loop through file sizes to get the total directory size? [/snip] If you are on a *nix system of some sort you could exec du -h

« previous php.general (#211705) next »