The disk_free_space() function returns the free space in bytes for the specified directory.
disk_free_space(directory)
| parameter | describe |
|---|---|
| directory | Required. Specifies the directories to be checked. |
<?phpecho disk_free_space("C:");?>The above code will output:
109693288448