disk_total_space in PHP December 13, 2021 by Codingtube team Syntax of disk_total_space in PHP float disk_total_space(string path) Returns the number of bytes of total space available (including both used and free) on the disk partition or filesystem at path. Example of disk_total_space