php notify



I'm hopeful this is a solved problem, and I'm just not searching for the right thing yet.

I'd like a way to send a 'notify' to php processes that want it, without the use of a moderator or helper process. One way I tried is to use Daniel Rozsnyo multicast patch and have each php process join a multicast group and wait. Interestingly, this works when invoked on the CLI, but not from a browser. Daniel suspects there may be some interference from apache.

The basic problem is sort of akin to a chat program. Multiple clients join and sit waiting for new messages. Using ajax, I open an http connection to a php script on the server, which then waits for a certain amount of time for a message. If none arrives, I respond as such and a new connection is created. Otherwise, I send the message back to the client. I need some way to notify the waiting processes that there's a new message so they can spring into action.

Thanks!
Marty
.



Relevant Pages

  • Re: FastCGI and DB connections / global variables?
    ... has already been developed running Win2K and PHP 4, ... switch over to FastCGI. ... Eventually this effected each of the PHP processes started by ... global variables stick around from page request to page request, ...
    (comp.lang.php)
  • Re: [PHP] Nested includes - Relative paths?
    ... You can save yourself a LOT of headaches by utilizing the ever-popular ... 'include_path' feature so you never have to put any kind of directory ... I'm relatively new to PHP but I've had some training and feel quite ... When PHP processes an include statement does it ...
    (php.general)
  • Re: FastCGI and DB connections / global variables?
    ... has already been developed running Win2K and PHP 4, ... switch over to FastCGI. ... When the database servers became loaded, ... Eventually this effected each of the PHP processes started by ...
    (comp.lang.php)
  • Re: FastCGI and DB connections / global variables?
    ... has already been developed running Win2K and PHP 4, ... switch over to FastCGI. ... When the database servers became loaded, ... Eventually this effected each of the PHP processes started by ...
    (comp.lang.php)
  • POP3, access & handle with PHP
    ... I wrote some classes for easy handling of POP3-mailboxes with PHP. ... Because I think others will benefit from them also, I'd like to notify ...
    (comp.lang.php)