Re: Re: Re: [PHP] Full-Duplex communication
| From: | Vinod Panicker | Date: | Wed, 22 May 2002 07:01:04 +0000 |
| Subject: | Re: Re: Re: [PHP] Full-Duplex communication | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-98694@lists.php.net to get a copy of this message | ||
What i have at the other end is a Instant Messenger client :)
Cant have the script running till the time the user logs out can i? And also, different activities are triggered on the server asynchronously (presence status, instant messages, notifications) which has to be sent to the client.
Tx,
Vinod.
On Wed, 22 May 2002 Richard Archer wrote :
At 5:55 AM +0000 22/5/02, Vinod Panicker wrote: I want the ability to write to a socket thats been created earlier - i want to steal it from Apache, so that i can use it when and where i like. Why not just keep your script running and have it send more data to the browser whenever it becomes available. The browser will add the new data to the page on display. With some clever use of DHTML you could probably make the existing content be updated with the new material. When a browser wants to trigger an update it will close the existing connection and open a new one. Your running script will be killed by apache and your new one would build a base page and start streaming the data in it's place. I see nothing here more complicated than a long-running script and perhaps sessions to manage the browser-initiated connections. ...Richard. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php_________________________________________________________ Click below to visit monsterindia.com and review jobs in India or Abroad http://monsterindia.rediff.com/jobs