PHP disk_total_space() Function

PHP disk_total_space Function


Definition :

The disk_total_space() function returns the total size, in bytes, of the specified filesystem or disk.

Tip: Look at the disk_free_space() to get the free space of a filesystem or disk. 

Syntax

   disk_total_space(directory)

Parameter 
Parameter Description
directory Required. Specifies the filesystem or disk to check

Given below example Return the total size, in bytes, of the C: directory:

Output : 159382839296