title: Run background job and display results to the user
body: <p>I have this php script that imports each row to my database. After it saves, in the same process it will do some more stuff, takes 1-2 sec for each row so my user prefers to send the CSV file to me, then I run in the terminal.</p>
  
  <p>I want to build a page to him, so he can drop the CSV in a file input, until here ok, I saw how to make this run in background, but I really want to show in the page the results of importing, my scripts echoes the result for each row in the CSV in the terminal. <strong>How to do something similar in the HTML?</strong></p>
  
  <p>How to make the user drops the CSV in a file input and see the result for each row right bellow as like he had executed the script in a terminal on his screen?</p>
  
  <p><strong>EDIT</strong> <em>(making things clear)</em><br>
  I want to display the script messages while it's running, I mean, for each row of the csv file, my script will output/echo the result of the import, I want to immediately display this row result to the user in the HTML page. Not after the script execution finishes. Something like a stream.</p>