PHP disk_free_space() Function


PHP Filesystem Reference Complete PHP Filesystem Reference

Definition and Usage

The disk_free_space() function returns the free space, in bytes, of the specified directory.

Syntax

disk_free_space(directory)

Parameter Description
directory Required. Specifies the directory to check

Example

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

The output of the code above could be:

109693288448

PHP Filesystem Reference Complete PHP Filesystem Reference

SHARE THIS PAGE

Color Picker

colorpicker