How do I execute a linux command in PHP and echo the output in original format?
$out = shell_exec('df');
echo $out;
It seems that this simple method will only print the output in a long string format rather than with the correct number of spaces, tabs, line separators. Any assistance is appreciated. Thanks!