free disk space

free disk space

<?php
$free_space = diskfreespace("C:\\");
//echo $free_space; //bytes
//echo $free_space/1024/1024; //megabytes
echo $free_space/1024/1024/1024 . " gigabytes";
?>