小弟我的PHP代码运行时感觉像是回到了一九四几年,就是图灵破解二战密码的那个时代
Jun 13, 2016 pm 12:20 PM
buffer
nbsp
php
我的PHP代码运行时感觉像是回到了一九四几年,就是图灵破解二战密码的那个时代。
我提交代码在服务器上运行,然后等个三四分钟在网页上查看运行的结果。
这完全是上个世纪才会有的事情,这么慢搞得我好没意思。
我要提的问题是:“怎么可以让代码一边运行时,一边显示部分已处理完成的数据结果?”
------解决思路----------------------
php 可以边执行边输出的,以前测试过,你可以参考这里面的函数 http://php.net/manual/zh/book.outcontrol.php
------解决思路----------------------
那你得先找到慢的原因吧?
如果是在php代码,那你就边计算边输出就是了
如果是在数据库查询,那么查询不结束,你只有干等了。
SQL_BUFFER_RESULT 子句可将查询结果先缓存的临时表,有助于提前解锁和会还结果
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot Article
How Long Does It Take To Beat Split Fiction?
3 weeks ago
By DDD
Repo: How To Revive Teammates
3 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
3 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌
Difficulty in updating caching of official account web pages: How to avoid the old cache affecting the user experience after version update?
3 weeks ago
By 王林
Two Point Museum: All Exhibits And Where To Find Them
3 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌

Hot tools Tags

Hot Article
How Long Does It Take To Beat Split Fiction?
3 weeks ago
By DDD
Repo: How To Revive Teammates
3 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
3 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌
Difficulty in updating caching of official account web pages: How to avoid the old cache affecting the user experience after version update?
3 weeks ago
By 王林
Two Point Museum: All Exhibits And Where To Find Them
3 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian

How To Set Up Visual Studio Code (VS Code) for PHP Development
