I'm trying to run a bash script in php; also, i want to see the log of the bash script. So, my php file looks like something like this:
printf "MyScript \nran \nsuccesfully"
MyScript ran successfully
Posting as a community wiki; I don't want rep from this.
As per my comment:
If you view your HTML source, you will see the line breaks are indeed there. If you want to see them on different lines "on screen", you need to use either