note 30368 added to function.round

From: Date: Sat, 15 Mar 2003 16:29:11 +0000
Subject: note 30368 added to function.round
Groups: php.notes 
Request: Send a blank email to php-notes+get-45357@lists.php.net to get a copy of this message
The Following will tell you how much sapce you have in MB and how much space is left in MB, if you wont to know in Bytes then change $df = round(( disk_total_space("/") / 1000000 )); $dg = round(( disk_free_space("/") / 1000000 )); to $df = disk_total_space("/"); $dg = disk_free_space("/"); <?php $df = round(( disk_total_space("/") / 1000000 )); $dg = round(( disk_free_space("/") / 1000000 )); $dh = "<br> <b>Total Disk Space : ".$df."MB<br> Free Disk Speace : ".$dg."MB</b><br>"; Echo $dh; ?> -- http://www.php.net/manual/en/function.round.php http://master.php.net/manage/user-notes.php?action=edit+30368 http://master.php.net/manage/user-notes.php?action=delete+30368 http://master.php.net/manage/user-notes.php?action=reject+30368

« previous php.notes (#45357) next »