Return the free space, in bytes, of the C: directory:
<?php
echo disk_free_space("C:");
?>
The output of the code above could be:
109693288448
The disk_free_space() function returns the free space, in bytes, of the specified filesystem or disk.
Tip: Look at the disk_total_space() to get the total size of a filesystem or disk.
disk_free_space(
directory)
Parameter | Description |
---|---|
directory | Required. Specifies the filesystem or disk to check |
Return Value: | The number of free space (in bytes) on success, FALSE on failure |
---|---|
PHP Version: | 4.1+ |
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!