How php returns the current running Status & nbsp; in a UI request, it may take several minutes for PHP to respond. I want PHP to return some prompts to the UI during the response process. for example, "analysis indicator 1" is returned in one minute, and "analysis indicator 2" is returned in two minutes ". & Nbsp; how can I cook prawns? How does php return the current running status?
In a request to the UI, the PHP response may take several minutes. I want PHP to return some prompts to the UI during the response process. for example, "analysis indicator 1" is returned in one minute, and "analysis indicator 2" is returned in two minutes ".
How can I cook prawns?
------ Solution --------------------
Replace the following code with multiple requests
If ($ _ GET ['P'] = '1 '){
Echo 'action 1 has been completed ';
} Else if ($ _ GET ['P'] = '2 '){
Echo 'action 2 has been completed ';
}
In this way, the results will not be displayed soon after a request is processed.
------ Solution --------------------
Yes, you need to fill the browser cache first.
Then you just need to make enough cache-filled data?
And it should be js code.