Google chrome doesn't behave the same as other browsers when encountering this nugget:
<?php
while (true) {
echo "<script type='text/javascript'>
";
echo "alert('hello');
";
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?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…