w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Java socket server, PHP socket client; communication works, however PHP 'echoes' data only after the socket connection is closed

It seems you dont understand php with http well . You will get the HTML response only after your php client code completes execution. (i.e) all your echo's will be put in place where you specified and returned as a whole. Putting sleep will only delay the execution.





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.