note 48630 deleted from function.disk-free-space by nlopess
| From: | nlopess@php.net | Date: | Sun, 02 Jan 2005 20:06:46 +0000 |
| Subject: | note 48630 deleted from function.disk-free-space by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-82614@lists.php.net to get a copy of this message | ||
Note Submitter: dejotmoros at o2 dot pl
----
disk_free_space() returns the total free space of the given directory, so for all you beginners out
there here's how to show it in other size units.
free space in bytes:
$dfs = disk_free_space("/");
free space in kbytes:
$dfs = disk_free_space("/") / 1024;
free space in mbytes:
$dfs = disk_free_space("/") / 1024*1024;
and so on...