Working with Javascript, how to use Comet and Push technique using AJAX and PHP


+1 vote
asked Mar 16, 2016 by ThatFal (400 points)
I am calling AJAX after each 5 seconds to update info of current logged-in user into database table in PHP.

4 Answers

0 votes
answered Mar 21, 2016 by haqFar (800 points)
 
Best answer

HTTP server push can be achieved through any of several mechanisms.
commented Mar 22, 2016 by blotter (640 points)
You can also have a look at this related question
commented Mar 22, 2016 by Nf_2797_D (640 points)
I have created a tool that make this task
commented Mar 23, 2016 by Interest7245 (280 points)
This accelerated dramatically test execution. A robust implementation would probably define these
0 votes
answered Apr 30, 2016 by Lingberg (200 points)
More details are here How to implement COMET with PHP - Zeitoun
That would be my pick
0 votes
answered May 7, 2016 by stankaitis (250 points)
Read the second part here Reverse Ajax, Part 1: Introduction to Comet - IBM
See similar question here
0 votes
answered May 21, 2016 by AndraAre (550 points)
Other answers here discuss the various problems with trying to do this
I find that Comet Programming: the Hidden IFrame Technique works

What is Geekub?

Q&A site for professional and enthusiast programmers, software developers and other technical users. With your help, we hope to work together to build a library of detailed answers to just about any question that is related to programming!







...