Complete example of sending messages continuously_PHP tutorial

WBOY
Release: 2016-07-21 16:06:42
Original
813 people have browsed it

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...
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!