note 48630 added to function.disk-free-space
| From: | dejotmoros at o2 dot pl | Date: | Sun, 02 Jan 2005 18:47:16 +0000 |
| Subject: | note 48630 added to function.disk-free-space | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-82608@lists.php.net to get a copy of this message | ||
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...
----
Manual Page -- http://www.php.net/manual/en/function.disk-free-space.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+48630
Delete -- http://master.php.net/manage/user-notes.php?action=delete+48630&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+48630&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+48630&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+48630&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+48630&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+48630&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+48630&report=yes
Search -- http://master.php.net/manage/user-notes.php