(PHP 4 >= 4.1.0, PHP 5, PHP 7)
Returns available space on filesystem or disk partition
float disk_free_space ( string $directory )
Given a string containing a directory, this function will return the number of bytes available on the corresponding filesystem or disk partition.
Parameters:
directory
A directory of the filesystem or disk partition.
Note:
Given a file