PHP - Flushing While Loop Data with Ajax

前端 未结 4 1444
温柔的废话
温柔的废话 2020-11-29 09:08

Using PHP, I would like to make a while loop that reads a large file and sends the current line number when requested. Using Ajax, I\'d like to get the cur

4条回答
  •  一生所求
    2020-11-29 09:41

    The trick is to create a file (updated via Ajax) and use a setInterval to get its value, then update the progressbar.

提交回复
热议问题