[src]
<?
exec("du -sh /home2/*",$output,$;
?>
<TABLE>
<TR>
<TD>Name</TD>
<TD>Used</TD>
<?
foreach ($output as $x)
{

if(!preg_match("/aquota/",$x) ) #filter unneed string
{
echo "<tr>";
$x=str_replace("/home2/",":",$x); #replace unneed text
$chars = preg_split('/:/', $x, -1, PREG_SPLIT_OFFSET_CAPTURE); #split text to array


echo "<td>",$chars[1][0],"</td>";
echo "<td>",$chars[0][0],"</td>";
echo "</tr>";
}
}
?>
</TABLE>
[/src]