I have a socket like /var/run/myapp.sock. Its waiting to send me some data. how do I read it with PHP? any examples? All the examples I find are for TCP sockets.
A socket is not a file… a socket is a combination of Ip and port.
The file is a simple buffer.
You should open a read_socket() to listen on a socket…