The disk_total_space() function returns the total disk capacity of the specified directory, in bytes.
disk_total_space(directory)
parameter | describe |
---|---|
directory | Required. Specifies the directories to be checked. |
<?phpecho disk_total_space("C:");?>
The above code will output:
119990349824