PHP disk_free_space() Function
Complete PHP Filesystem Reference
Definition and Usage
The disk_free_space() function returns the free space, in bytes, of the specified directory.
Syntax
disk_free_space(directory)
Parameter | Description |
---|---|
directory | Required. Specifies the directory to check |
Example
<?php
echo disk_free_space("C:");
?>
The output of the code above could be:
109693288448
Complete PHP Filesystem Reference