Find total size of a filesystem in php
by satheeshkumar[ Edit ] 2012-08-17 22:40:26
Find total size of a filesystem in php,
The
disk_total_space() file system function in PHP will return the total amount of bytes a disk partition or filesystem can store. Will also read a windows partition total disk space.
$totalSpace = disk_total_space("file or foldername");
echo "There are " . $totalSpace . " bytes of total space in filesystem";
?>