php socket_read in xampp doesn't work -
i trying send package , print it's respond. can send package using:
$socket = socket_create(af_inet, sock_stream, sol_tcp); socket_write($socket, $in, strlen($in)); however when try respond same socket never arrives:
while ($out = socket_read($socket, 2048)) { echo $out; } i can capture respond in wireshark guessing somehow it's configuration in xampp or windows have do. using xampp version 1.8.2 in windows 7 64 bit
k found problem. first of make sure close socket.
socket_close($socket); but problem data getting hex. somehow assume echo, or print_r able print data it's not had convert data asci.
Comments
Post a Comment