Home  >  Article  >  Backend Development  >  Complete example of sending messages continuously_PHP tutorial

Complete example of sending messages continuously_PHP tutorial

WBOY
WBOYOriginal
2016-07-21 16:06:42825browse

Tested environment
win2000/IIS
linux/apache

apache under win2000 was not successful! Don't know why! ! !


echo "You will see the future of this technology! Haha!...What? Didn't see it, refresh it and see!! You saw it!!";
$i = 1;
for($j=0;$j<500;$j++)print(" "); //This line is the part that can be displayed without refreshing the page, because the browser buffers The reason for

for($i; $i < 30; $i++){
print("n
$i");
flush();
sleep( 1);
}
?>

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/315297.htmlTechArticleTested environment win2000/IIS linux/apache apache under win2000 was not successful! Don't know why! ! ! ? echo You will see the future of this technology! Ha ha! ...What? I didn’t see it...
Statement:
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