Hi, Im using socket_read($socket,2024, PHP_BINARY_READ) to get msg from C++ program. But I get not a string message but strange encodings. When I use PHP_NORMAL_READ I dont get anything :/
Here's how I send msg from C++ program:
send(clientSocket, header, (int) length, 0);
header is type of char.
I also tried using socket_recv($socket,$buffer,1024,0); , but also recieved strange encodings.
PS. The socket is all right, I can send any information from www to C++ program , but I fail in sending information from C++ to www from the same socket.....