kartikay malhotra wrote:
Dear Adam,


"You can do it without polling. I've seen web applications that open a
neverending GET request in order to get updates to the browser
instantaneously.

Regards, Adam."

Kindly elaborate on "neverending GET request". Shall I call the script from
within itself?

Regards
KM

On 6/8/06, Adam Zey <[EMAIL PROTECTED]> wrote:

Barry wrote:
> Angelo Zanetti schrieb:
>> kartikay malhotra wrote:
>>> Hi All,
>>>
>>> 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?
>>>
>>> Thanks
>>> KM
>>>
>>
>>
>> what kind of event??
>
> Server bored and fooling around with the neighbor servers hardware :P
>
> But Ajax would be the best method using.
>
> Anyway else isn't possible (well refreshing would be one way)
>
> But since you don't want php files to execute forever you will have to
> stick to AJAX.
>

You can do it without polling. I've seen web applications that open a
neverending GET request in order to get updates to the browser
instantaneously.

Regards, Adam.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




I refer to having the javascript code open a GET request that never ends and streaming data from the server back to the client. The server-side PHP process, which stays running, streams back data whenever it becomes available. This of course uses a lot of memory. I have never done this myself in a web application, so I suggest you google for examples of other people who have actually implemented it.

Regards, Adam Zey.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to