search

Home  >  Q&A  >  body text

How does PHP realize real-time output of content?

Which method does PHP use to update the output content in real time on the console?
For example, I want to output 1000 rows: "inserting row X"
The console shows that only X is changing

天蓬老师天蓬老师2775 days ago749

reply all(2)I'll reply

  • 阿神

    阿神2017-06-16 09:20:32

    echo "inserting row X\r";

    reply
    0
  • 扔个三星炸死你

    扔个三星炸死你2017-06-16 09:20:32

    The problem is a bit wrong. The output in cli mode is real-time

    reply
    0
  • Cancelreply