<?
/* Directory Size - by dark2k1(dark2k1.com) */
$directory = "/some directory/";
if ($handle = opendir("$directory")) {
while (false !== ($file = readdir($handle))) {
$size = filesize("$directory$file");
$totalsize += $size;
}
echo "totalsize: $totalsize";
if ($totalsize > 30000) {
echo "You have exceded your maximum storage limit";
} else {
echo "You have not reached your maximm storage limit";
}
closedir($handle);
}
?>