strange issue, this script works on my local but not on my shared php hosting...
while (1 <20) {
$time = time();
echo "data: {$time}\n\n";
ob_flush();
flush();
sleep(3);
}
but if I comment out the while loop, it works fine. Anyone aware of this strange issue?
Error seen in chrome is - "Provisional headers are shown" (if I comment out the while loop, it works fine)
Just to note...I know that's an infinite loop.