zombieJones
03-28-2008, 10:11 AM
Is there anything I have to do to make flush() print to the screen the way it supposed to? Server configuration or something?
Like even this simple example I found online doesn't work. Page loads for four seconds and then is printed all at once
<HTML>
<BODY>
This page is loading.<BR />
<?php flush(); sleep(2); ?>
Almost there...<BR />
<?php flush(); sleep(2); ?>
Done.<BR />
</BODY>
</HTML>
Like even this simple example I found online doesn't work. Page loads for four seconds and then is printed all at once
<HTML>
<BODY>
This page is loading.<BR />
<?php flush(); sleep(2); ?>
Almost there...<BR />
<?php flush(); sleep(2); ?>
Done.<BR />
</BODY>
</HTML>