note 13667 added to function.disk-total-space.php
| From: | kit at 4me dot ru | Date: | Thu, 28 Jun 2001 06:57:12 +0000 |
| Subject: | note 13667 added to function.disk-total-space.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-14709@lists.php.net to get a copy of this message | ||
I just did the simple thing -
function Du($dir)
{
$du = popen("/usr/bin/du -sk $dir", "r");
$res = fgets($du, 256);
pclose($du);
$res = explode(" ", $res);
return $res[0];
}
http://www.php.net/manual/en/function.disk-total-space.php