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…
Thanks, but there is no read_socket().
PHP: socket_read - Manual there is.
google it helps…