What is the difference between disk_free_space and disk_total_space functions in PHP?

The disk_free_space function in PHP returns the amount of free disk space available on the specified path, while the disk_total_space function returns the total size of the disk where the specified path is located. These functions can be useful for monitoring disk space usage and managing storage resources in PHP applications.

// Get the total disk space
$total_space = disk_total_space('/path/to/directory');

// Get the free disk space
$free_space = disk_free_space('/path/to/directory');

echo "Total disk space: " . $total_space . " bytes\n";
echo "Free disk space: " . $free_space . " bytes\n";