<?php
include 'class.DiskUsage.php';
$obj = new DiskUsage;
$path= "/var/www/example/";
$size = $obj->_directorySize($path);
echo "<h4>Details for the path : $path</h4>";
echo "Total size : ".$obj->_sizeFormat($size['size'])."<br>";
echo "No. of files : ".$size['count']."<br>";
echo "No. of directories : ".$size['dircount']."<br>";
?>
|