I need to send information from php client to java server, but none is receiving on server side though one print statement is successfully executed on server, the text from clie
Got it !,
We need to add $message = "Apple\n"; instead of $message = 'Apple\n';
$message = "Apple\n";
$message = 'Apple\n';
Try to add a line-end to your message.
readLine will always wait for the line-end.