PHP diskfreespace()Functions
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:");
?>
echo diskfreespace("C:");
?>
The above code will output:
109693288448
Complete PHP Filesystem Reference Manual Other Extensions