How to open and read/write to a linux socket file?

I have a socket like /var/run/myapp.sock. Its waiting to send me some data. how do I read it with PHP? This is under Linux. All the examples I find are for TCP sockets.

Sponsor our Newsletter | Privacy Policy | Terms of Service