Directory Size

From: Date: Fri, 15 Aug 2003 08:44:20 +0000
Subject: Directory Size
Groups: php.general 
Request: Send a blank email to php-general+get-159656@lists.php.net to get a copy of this message
Greetings learned PHP(eople); Is there a way to calculate the size of directory in PHP ? I searched php.net and only found ways of opening directories and reading file sizes.... One suggestion on there was to do the following : $mstrng = shell_exec('du -sc /backup/'); echo '<pre>' . $mstrng . '<pre>'; When I do that my browser hangs endlessly....mind you, it also hangs when I run du -sc from the command line... Any pointers muchly appreciated... -- Chris Blake Office : (011) 782-0840 Cell : 083 985 0379 Anger kills as surely as the other vices.

« previous php.general (#159656) next »