I have a PHP socket application which connects to a server and sends some data,
i need to extend this script to send (write) and listen back for a replay from the server
i was trying using socket_read() after socket_write()
but it hangs the script.
any idea on this ?
$file_bits? Assuming it's valid, that code will wait until timeout to read from the socket at least one byte.