How does php return the current running status?

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.