How to answer in the php ajax request in progress?
Please tell me how to implement the task:
There is an ajax request from front to Beck. Send parameters to php, and he, in turn, in a loop makes the necessary calculations.
Before, when I had to get one response, I was writing in die() variable with the value of the executed result and ajax success received this response and working further with him in the front.
I need that during the execution of the loop in Php after each iteration, ajax get an answer, perform calculations, iteration and sent consistently result in success. What to use instead of die()?
This is to display the progress of process.