PHP diskfreespace()Functions


PHP Filesystem 参考手册Complete PHP Filesystem Reference Manual

Definition and Usage

The diskfreespace() function returns the available space of the specified directory, in bytes.

This function is an alias of the disk_free_space() function.

Syntax

diskfreespace(directory)

Parameters Description
directory Required. Specifies the directory to check.


Example

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

The above code will output:

109693288448


PHP Filesystem 参考手册Complete PHP Filesystem Reference Manual Other Extensions