hola yo tengo un codigo que me funciona en mi servidor localhost, no sé si servira en un hosting como el tuyo asi que prueba este code porfavor:
Código PHP:
<?
$d=`df -m`;
$l=explode("\n",$d);
echo "<table border=1 cellspacing=0 cellpadding=1>";
echo "<TR>";
echo "<TH>FS</TH><TH>MB total</TH><TH>MB usados</TH>";
echo "<TH>MB Libre</TH><TH>%</TH><TH>Ruta</TH>";
echo "</TR>";
for($i=1;$i<count($l);$i++){
$l[$i]=preg_replace('/[ ]+/'," ", $l[$i]);
$items=explode(" ",$l[$i]);
if (count($items)>=5)
{
echo "<TR>";
echo "<TD><center>".$items[0]."</center></TD>";
echo "<TD><center>".$items[1]."</center></TD>";
$totalspace=($items[1]/102.4);
echo "<TD><center>".$items[2]."</center></TD>";
$usedspace=($items[2]/102.4);
echo "<TD><center>".$items[3]."</center></TD>";
echo "<TD><center>".$items[4]."</center></TD>";
echo "<TD><center>".$items[5]."</center></TD>";
echo "<TR>\n";
}
}
echo "<br>";
echo "</TABLE>";
$totalgraph=$totalspace*6;
$usedgraph=$usedspace*6;
echo "<br><br>";
echo "<table width=$totalgraph border=2 bordercolor='gray' height=35 cellspacing=1 cellpadding=2><tr>";
echo "<td bgcolor='red' width=$usedgraph></td>";
echo "<td bgcolor='white'></td></tr></table>";
?>