Copyright © tutorialspoint.com
| float diskfreespace ( string $directory ); |
This function is an alias of: disk_free_space().
| Parameter | Description |
|---|---|
| directory | A directory of the filesystem or disk partition. |
Returns the base name of the given path.
Following is the usage of this function:
<?php
//On windows:
$hdwinC = diskfreespace("C:");
$hdwinD = diskfreespace("D:");
echo "Diskspace left on C: $hdwinC";
echo "Diskspace left on D: $hdwinD";
//Linux:
$hdGnu = diskfreespace("/");
echo "Diskspace left on / $hdGnu";
?>
|
Copyright © tutorialspoint.com