buffer flushing not working properly..
Posted: Fri Oct 27, 2006 6:23 am
my web host (http://toocrooked.goldeye.info/) uses PHP version 4.3.4
my home server uses 4.4.2
my home server allows me to flush() the buffer as often as i want, and it works beautifully.
however, the web host completely ignores my flush() requests... what are possible reasons for this? my link above has a file called "test.php" which contains the following code:
on my home computer, this shows properly.. hello, pause, goodbye, pause, goodnight.. however, my web host sees only the last line...
why would this occur?? what has my web host done to me!?!?
my home server uses 4.4.2
my home server allows me to flush() the buffer as often as i want, and it works beautifully.
however, the web host completely ignores my flush() requests... what are possible reasons for this? my link above has a file called "test.php" which contains the following code:
Code: Select all
<HTML>
<BODY>
<DIV ID="flushme">
Hello, world!
</DIV>
<?php flush(); sleep(2); ?>
<SCRIPT>
d = document.getElementById("flushme");
d.innerHTML = "Goodbye, Perl!";
</SCRIPT>
<?php flush(); sleep(2); ?>
<SCRIPT>
d.innerHTML = "Goodnight, New York!";
</SCRIPT>
</BODY>
</HTML>why would this occur?? what has my web host done to me!?!?