disk_total_space
Returns the total size of a filesystem or disk partition
Syntax
disk_total_space ( string $directory ) : float
Parameters
directory
A directory of the filesystem or disk partition.
Return
Returns the total number of bytes as a float or FALSE on failure.
Examples
1
<? $directory = "/"; $return = disk_total_space($directory); echo $return; ?>
3479058210816
2
<? // windows $directory = "C:"; $return = disk_total_space($directory); echo $return; ?>
3479058210816