php disk_free_space() function - how to get disk free space in bytes
disk_free_spaceFunction.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>php disk_free_space() function - how to get disk free space in bytes</title>
</head>
<body>
<h2 style="color:Crimson; font-style:italic">php disk_free_space() function example:<br /> get disk free space in bytes</h2>
<hr width="450" align="left" color="Orange" />
<br />
<?php
echo "<h2 style=color:navy>";
echo "Free space (c) " . disk_free_space("c:") . "<br />";
echo "Free space (e) " . disk_free_space("e:") . "<br />";
echo "Free space (f) " . disk_free_space("f:") . "<br />";
echo "Free space (g) " . disk_free_space("g:");
echo "</h2>";
?>
</body>
</html>