Hello,
I want to display data which is coming from socket server. In the client side
i have the below code
$sock=fsockopen(‘localhost’,5000,$errstr,$errno,30);
while(1)
{
echo fgets($sock,128);
}
The above code works fine in CLI mode, i want the data to be displayed in browser. Since the loop is infinite the browser never loads. Can someone tell me a way to get these data displayed in a browser?
Thanks
Shivam