So I have written this neat little daemon script in PHP to do some very boring housekeeping on some very boring files on a server. Then I turned it into a Windows service using the PECL win32service CVS package, and functions contained therein. Now I want to tell that service what to do. Is this possible?
Put another way, if two people were loading a page from a HTTP server at the same time, is there any way to make those two scripts running on those two open connections talk to each other?
I can obviously bounce data through a DB of some kind, but this would mean constantly polling the DB for changes (I am using MySQL at the moment) and this puts a lot of unnecessary stress on the host machine. What I want is to send a message directly from one script to another.
P.S. Yes, I am aware that PHP is not the best language for doing this, but you work with what you've got...