Hi there if you face this nagging thing that the output of shell_exec command is appering in one long line you must keep reading this super easy solution you will thank me after that let say the output is saved in $output variable <php $output = shell_exec($cmd); echo $output; # will pring a long line with the output # in order to fix the output to get line breaks use this code foreach(preg_split("/((\r?\n)|(\r\n?))/", $output_including_status) as $line){ { echo "<br/>"; echo $line; } ?> have fun. support me.
this site will guide you how to overcome some problems you may face during your work and guide you how to perform simple technical operations to achieve your goals.