How to maipulate the shell output in php
- by Mirage
I am trying to write php script which does some shell functions like reporting.
So i am starting with diskusage report
I want in following format
drive path ------------total-size --------free-space
Nothing else
My script is
$output = shell_exec('df -h -T');
echo "<pre>$output</pre>";
and its ouput is like below
Filesystem …