Copyright © tutorialspoint.com
| 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.
| Parameter | Description |
|---|---|
| directory | A directory of the filesystem or disk partition. |
Returns the number of available bytes as a float.
Following is the usage of this function:
<?php
// $df contains the number of bytes available on "/"
$df = disk_free_space("/");
// On Windows:
disk_free_space("C:");
disk_free_space("D:");
?>
|
Copyright © tutorialspoint.com