Echo messages while php script still executes

前端 未结 9 1078
轻奢々
轻奢々 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:44

    You can use the flush() function to send all the content of the buffer to the client. http://php.net/manual/fr/function.flush.php

提交回复
热议问题