Current Location: Home> Function Categories> disk_total_space

disk_total_space

Returns the total size of the file system or disk partition
Name:disk_total_space
Category:File system
Programming Language:php
One-line Description:Returns the total disk capacity of a directory.

Definition and usage

disk_total_space() function returns the total disk size of the specified directory.

Example

 <?php
echo disk_total_space ( "C:" ) ;
?>

The output looks like this:

 509693888668

grammar

 disk_total_space ( directory )
parameter describe
Directory Required. Specify the directory to be inspected.

illustrate

The directory parameter is a directory string. This function will return all bytes based on the corresponding file system or disk partition.

Similar Functions
Popular Articles