note 117062 deleted from function.disk-free-space by sobak

From: Date: Fri, 02 Dec 2016 03:56:08 +0000
Subject: note 117062 deleted from function.disk-free-space by sobak
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-207924@lists.php.net to get a copy of this message
Note Submitter: polakeng at gmail dot com ---- If you want to show the free kbs / total kbs use this code: <? $dir = 'home/' $free = disk_free_space($dir); $total = disk_total_space($dir); $free_to_kbs = $free / (1024*1024); $total_to_kbs = $total / (1024*1024); echo 'You have '.$free_to_kbs.' KBs from '.$total_to_kbs.' total KBs'; ?> and for MBs: <? $dir = 'home/' $free = disk_free_space($dir); $total = disk_total_space($dir); $free_to_mbs = $free / (1024*1024)*1024; $total_to_mbs = $total / (1024*1024)*1024; echo 'You have '.$free_to_mbs.' MBs from '.$total_to_mbs.' total MBs'; ?> Neymar11

« previous php.notes (#207924) next »