Home > Backend Development > PHP Tutorial > PHP一个缓存设置的有关问题,请大家帮小弟我解释一下,多谢

PHP一个缓存设置的有关问题,请大家帮小弟我解释一下,多谢

WBOY
Release: 2016-06-13 10:03:59
Original
896 people have browsed it

PHP一个缓存设置的问题,请大家帮我解释一下,谢谢
for ($i=10; $i>0; $i--)
{
echo $i;
//flush();
sleep(1);
}
?>

PHP.INI的设置:output_buffering = on

这样的话,是不是说前面10,9,8,7,6,5,4,3,2,1要等程序执行完了,一起输出?

我现在把buffring=off了,可还不是一个个输出,请问应该怎么理解
谢谢大家

------解决方案--------------------
加上
ob_flush();
flush();
------解决方案--------------------
关注 接分
------解决方案--------------------
没遇到过这种情况.

Related labels:
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template