September 14th, 2000, 11:43 AM
I have a PHP script running in CGI mode as a daemon. I'm writing another (non-daemon) PHP script that needs to be able to pass data to the daemon. How does one achieve this? Do I somehow set up the daemon to "listen" at a certain port or something? I definitely want to avoid writing to disk -- I need this to be fast; that's why I'm trying to do it all in-memory. Any info would be greatly appreciated.
September 14th, 2000, 06:40 PM
September 15th, 2000, 10:37 AM
Thanks, but I don't want to start a new process. I'm trying to pass data to a script that is always running.
September 18th, 2000, 12:59 PM
... or did you mean that I should somehow use exec() to listen at the port?
What did you mean?
Wouldn't I just use fsockopen() and fgetc() or something like that? I've tried it and I can't get it to work.
I'll think good thoughts about anyone who can help me.
September 18th, 2000, 01:05 PM
Sorry I don't know about sending data via a port. Something that *may* be useful is wddx, but that assumes that the daemon can parse the wddx packet, which is unlikely
you might want to post this question to a *nix group