Introduction
In this article I describe the PHP FileSystem functions "disk_total_space", "diskfgreespace", "fclose" and "feof". To learn some other filesystem functions, go to:
PHP disk_total_space() Function
The PHP filesystem "disk_total_space" function returns the total size of the file system or disk partition.
Syntax
| disk_total_space(directory) |
Parameter in disk_total_space function
The parameter of the function is:
| Parameter | Description |
| directory | It specifies the directory to check. |
Example
An example of the function is:
<?php
echo "Total space on drive C (in Bytes) is: ";
echo disk_total_space("C:");
?>
Output 
PHP diskfreespace() Function
The PHP filesystem "diskfreespace" function is an alias of the "disk_free_space_function" thatalso returns the available space on the file system or disk partition (in bytes).
Syntax
| diskfreespace(directory) |
Parameter in diskfreespace function
The parameter of the function is:
| Parameter | Description |
| directory | It specifies the directory to check. |


Join the conversation! Your thoughts help the community grow.