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