until version 2.0 we had streaming, but streaming with php has a bad performance-issue: the maximum user-count is limited by the maximum possible apache-processes. by using a refreshing version you can have much more users with the same ressouces. thats the only reason.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi...why phpopnchat have refreh!?!?
why not stream?!!? :(
whell, if authors dont know the code for this (i dont think this):
set_time_limit(0);
for ($x=0;$x<50;$x++) {
echo "<!--isso eh um comentario (buffer) !-->\n";
echo "<font></font>\n";
}
while (1<10) {
flush();
echo "Data from DB <br>\n";
flush();
sleep(2);
}
[]s
until version 2.0 we had streaming, but streaming with php has a bad performance-issue: the maximum user-count is limited by the maximum possible apache-processes. by using a refreshing version you can have much more users with the same ressouces. thats the only reason.