simple client server communication between java and php

后端 未结 2 692
悲哀的现实
悲哀的现实 2021-02-06 03:19

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

相关标签:
2条回答
  • 2021-02-06 03:47

    Got it !,

    We need to add $message = "Apple\n"; instead of $message = 'Apple\n';

    0 讨论(0)
  • 2021-02-06 03:53

    Try to add a line-end to your message.

    $message = 'Apple\n';
    

    readLine will always wait for the line-end.

    0 讨论(0)
提交回复
热议问题