Disk total space : Disk Drive : File Directory PHP Source Code


PHP Source Code » File Directory » Disk Drive »

 

Disk total space



<?php
   $systempartitions = array("/""/home","/usr""/www");
   foreach ($systempartitions as $partition) {
      $totalSpace = disk_total_space($partition1048576;
      $usedSpace = $totalSpace - disk_free_space($partition1048576;
      echo "Partition: $partition (Allocated: $totalSpace MB. Used: $usedSpace MB.) <BR>";
   }
?>


           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo File Directory
» Disk Drive