How do I make a daemon into a stream in PHP

Posted by Itay Moav on Stack Overflow See other posts from Stack Overflow or by Itay Moav
Published on 2010-05-18T13:02:57Z Indexed on 2010/05/18 13:20 UTC
Read the original article Hit count: 187

Filed under:
|
|
|
|

I have a daemon (written in C, but I assume it does not really matter) which outputs messages with printf, and can get input and do stuff with this input (again, not really important what, but he sends those messages to a different machine to be saved there in the DB).

My question, how can I make this daemon to be a stream in PHP, so I can hook the input/output of, for example, file_put_contents to this stream.

© Stack Overflow or respective owner

Related posts about php

Related posts about streams