Chris Blake wrote:
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...
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php