My PHP code feels like I'm back in crisp years, that's the time when Turing cracked the World War II cipher.
Source: Internet
Author: User
My PHP code feels like it's back in crisp, the era when Turing cracked the World War II code.
I submit the code to run on the server, and then wait a three or four minute to see the results of the run on the Web page.
It was just a matter of the last century, so slow to make me so boring.
The question I'd like to ask is, "How can you let the code run on one side and show some of the processed data results?" ”
------to solve the idea----------------------
PHP can perform side output, previously tested, you can refer to the function http://php.net/manual/zh/book.outcontrol.php
------to solve the idea----------------------
So you have to find the reason for the slow first?
If it's in PHP code, then you just compute the side output.
If the query is in the database, then the query does not end, you only wait.
The SQL_BUFFER_RESULT clause caches the query results in a temporary table that helps to unlock and also result early
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.