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