Well i have the following code:
<?php
while(1==1){
echo"piece<br>";
flush();
};
?>
The problem with this code is that the server doesn’t send 1 line (piece<br>) at the time..
Sends 10 lines per flush or whatever..
I tried this echo"piece<br>".str_repeat("\n",4096)
but it doesn’t work.I don’t know what to do..
Any advice?
Edit: The code into my previous question but i can’t write html 🙁
Edit2: I have upload my script here. Works fine only in Internet Explorer.
You may be having a problem with browser-side caching. I’ve had this problem with Safari; using Firefox allowed me to see the data live.
If you see this with different browsers, then you may be hitting some server-side caching:
http://php.net/manual/en/function.flush.php