Code Snippets Php

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