PHP disk_total_space () function
Definition and Usage
disk_total_space () function returns the total disk capacity specified directory, in bytes.
grammar
disk_total_space(directory)
参数 | 描述 |
---|---|
directory | 必需。规定要检查的目录。 |
Examples
<?php
echo disk_total_space("C:");
?>
echo disk_total_space("C:");
?>
The code above will output:
119990349824
Complete PHP Filesystem Reference Manual