Echo messages while php script still executes

前端 未结 9 1171
轻奢々
轻奢々 2021-02-08 13:05

I have a php script that uses cURL and takes about 10-15 minutes to execute. What it does, it parses about 1000 pages looking for specific matches and throughout the script I ha

9条回答
  •  春和景丽
    2021-02-08 13:41

    Sounds to be like you have output buffering turned on.

    Calling ob_end_flush() will print what's currently in the buffer, and turn off the buffer for the rest of the script execution.

提交回复
热议问题