Welcome Guest, Not a member yet? Register   Sign In
Event Driven Application (COMET)
#6

[eluser]vendiddy[/eluser]
Here is an idea I have heard before.

In PHP, you create a file with randomly generated name and write "0" to it. You send the file name to jQuery. jQuery can keep polling the file at fixed intervals to see if its contents have changed (!= "0"). At the end of the request you can delete the file.

This can be faster because PHP is bypassed and Apache serves the file directly.


Messages In This Thread
Event Driven Application (COMET) - by El Forum - 08-04-2009, 02:30 AM
Event Driven Application (COMET) - by El Forum - 08-04-2009, 05:32 AM
Event Driven Application (COMET) - by El Forum - 08-04-2009, 07:28 AM
Event Driven Application (COMET) - by El Forum - 08-04-2009, 08:42 AM
Event Driven Application (COMET) - by El Forum - 08-04-2009, 09:16 AM
Event Driven Application (COMET) - by El Forum - 08-04-2009, 11:29 AM
Event Driven Application (COMET) - by El Forum - 08-04-2009, 12:52 PM
Event Driven Application (COMET) - by El Forum - 08-04-2009, 11:59 PM
Event Driven Application (COMET) - by El Forum - 08-05-2009, 01:28 AM
Event Driven Application (COMET) - by El Forum - 08-05-2009, 06:31 AM
Event Driven Application (COMET) - by El Forum - 08-05-2009, 08:45 AM



Theme © iAndrew 2016 - Forum software by © MyBB