Google chrome doesn’t behave the same as other browsers when encountering this nugget:
<?php while (true) { echo '<script type='text/javascript'>\n'; echo 'alert('hello');\n'; echo '</script>'; flush(); sleep(5); } ?>
It seems that it’s waiting for the connection to terminate before doing anything.
Other than polling how can I do a similar thing in Google Chrome?
Some browsers require a certain number of bytes to be downloaded before rendering available data. I remember the last time I tried to do what you’re doing I ended up having to dump something like 300 spaces to be sure the browser would bother with it.