Why does Flush does not take effect?

zhaozj2021-02-16  50

I have seen this article early:

Flush () similar to Socket transmission

Very simple code, but can't run normally on my server, as follows:

code segment:

For ($ I = 1; $ I <= 500; $ I ) Print ""; ???? ob_implicit_flush (); ???? for ($ j = 1; $ j <= 30; $ j ) {? ??? echo $ j. ""; ???? Sleep (1); ????}?> Best can't understand, finally find Apache's httpd.conf configuration file, find that the option deflate that compresses the output is opened The above applet will wait for the compression to complete, and the effect of real-time output cannot be embodied. Adjust the range of deflate compression, restart Apache, all normal work.

转载请注明原文地址:https://www.9cbs.com/read-17823.html

New Post(0)