php disk_total_space() function - how to get disk total space in bytes

php disk_total_space() function - how to get disk total space in bytes


disk_total_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_total_space() function - how to get disk total space in bytes</title>
</head>

<body>
    <h2 style="color:SaddleBrown; font-style:italic">php disk_total_space() function example:<br /> get disk total space in bytes in php</h2>
    <hr width="425" align="left" color="Gray" />
    <br />

<?php

 echo "<h2 style=color:OliveDrab>";
  echo "Total space (c) " . disk_total_space("c:") . "<br />";
  echo "Total space (e) " . disk_total_space("e:") . "<br />";
  echo "Total space (f) " . disk_total_space("f:") . "<br />";
  echo "Total space (g) " . disk_total_space("g:");
 echo "</h2>";
?>
</body>
</html>