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