RE: [PHP] server sending notifications to clients
| From: | Jay Blanchard | Date: | Thu, 08 Jun 2006 14:32:02 +0000 |
| Subject: | RE: [PHP] server sending notifications to clients | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-237618@lists.php.net to get a copy of this message | ||
[snip]
Is there a way for the server to notify the client about an event,
provided
the client was online in the past X minutes?
To elaborate:
A client comes online. A script PHP executes (serves the client), and
terminates. Now if a new event occurs, how can the server notify the
client
about that event?
[/snip]
You would need a connection with state to do that, web server
connections are stateless. The client would have to have a 'listener'
waiting for some event to be pushed to them and then the listener would
take an action.