note 17790 deleted from function.diskfreespace by jimw

From: Date: Wed, 02 Jan 2002 01:30:12 +0000
Subject: note 17790 deleted from function.diskfreespace by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-24097@lists.php.net to get a copy of this message
You can also do this: $j = 0; $ext = array("B","KB","MB","GB","TB"); $df = diskfreespace("D:"); while ($df >= pow(1024,$j)) ++$j; $df = round($df / pow(1024,$j-1) * 100) / 100 . $ext[$j-1]; echo "Server Free Space = $df";

« previous php.notes (#24097) next »