How to use Filesystem disk total space in PHP
In this article I am going to explain to explain about disk_total_space function in PHP.
PHP disk_total_space() function
The filesystem disk_total_space function is used to returns total available space in directory in byte format.
Syntax of disk_total_space function
disk_total_space(directoryName) |
Parameters in disk_total_space function
It has only one parameter:
Parameter |
Description |
directoryName |
It specifies directory name. |
Example of filesystem disk_total_space function
<html>
<body>
<?php
echo "Total space of Disk C is ";
echo disk_total_space("C:");
echo "</br>";
echo "Total space of Disk D is ";
echo disk_total_space("D:");
?>
</body>
</html>
|
Output:

You may also want to read these related articles :here
Ask Your Question
Got a programming related question? You may want to post your question here
Programming Answers here