note 50480 added to function.disk-free-space
| From: | AshrafMKaabi at osu1 dot php dot net | Date: | Tue, 01 Mar 2005 17:55:05 +0000 |
| Subject: | note 50480 added to function.disk-free-space | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-85738@lists.php.net to get a copy of this message | ||
and also you can get Human Disk Free Space result in GB in This Example :
<?
function dfs_gb($drive)
{
if($drive)
{
return round(diskfreespace("$drive:")/1024/1024/1024,2); //To Get Human Result in
GB we divid it By 1024 Byte & 1024 KiloByte & 1024 MegaByte
}
}
echo dfs_gb(D); //(D) is a drive letter
?>
----
Manual Page -- http://www.php.net/manual/en/function.disk-free-space.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+50480
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+50480&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+50480&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+50480&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+50480&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+50480&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+50480&report=yes
Search -- http://master.php.net/manage/user-notes.php