echo from php “as it goes”

前端 未结 6 1785
耶瑟儿~
耶瑟儿~ 2021-01-20 18:27

what was the way to print results from a php script while it\'s printing stuff before the script ends? i tried to play with output buffer, putting sleep() between echos to t

6条回答
  •  心在旅途
    2021-01-20 18:57

    PHP loads a page all at once then displays it. Use flush() to show output as the script loads.

提交回复
热议问题