Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

disk_total_space

Description

The disk_total_space of Filesystem for PHP returns the total size of a filesystem or disk partition.

Syntax

disk_total_space(string $directory): float|false

Parameters

directory

A directory of the filesystem or disk partition.

Return

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

Examples

1

<?

$directory = "/";

$return = disk_total_space($directory);

echo $return;
938038476800

2 · windows

<?

$directory = "C:";

$return = disk_total_space($directory);

echo $return;
938038476800
HomeMenu