Hi
i am developing a VB-PHP based simple chat application using sockets. where VB is on the server side and PHP
script is the client.The connection is established, both sides are receiving messages. the problem is that the PHP client
is not able to display messages instantly as they arrive but it shows all of them when the connection is closed.
this is the loop im using in the script to read messages
while( ($out = socket_read($socket, 2048)) != "exit")
{
print("$out<BR>");
}
how can i display messages instantly ..?