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.
  • 1565

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


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




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:");





disk_total_space function.jpg

You may also want to read these related articles :

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here


More Articles

© 2020 DotNetHeaven. All rights reserved.