PHP function disk_total_space()

Availability in versions: PHP 4.1.0

Returns the total size of a directory

Parameters

Parameter Data type Default value Note
$directory string not A directory of the filesystem or disk partition.

Return values

float

|bool the total number of bytes as a float or false on failure.

Other resources

Official documentation for disk-total-space

Newsletter

Nejlepsi tipy a triky o PHP do Vaseho e-mailu. Clanky a novinky nejen ze sveta PHP a programovani.