Introduced
As we all know, HTTP protocol is an object-oriented protocol belonging to the application layer, there are five characteristics of HTTP protocol:
1, support client/server mode;
2, simple and fast;
3, flexible;
4, no connection;
5,
English Original: Reverse Ajax, part 1:introduction to Comet
Web Development has changed a lot in the last few years. Today, we want to be able to access applications quickly and dynamically through the web. In this new article series, we
Details:Http://www.phpyan.com/home/article/350.html
Two ways to achieve this:
One: IFRAME + server Push Technology Comet (reverse Ajax, that is, the server pushes data to the browser)
Two: Ajax persistent
PHP implements Ajax long polling. PHP implements the traditional Ajax round-robin method for long-polling AJAX. the client queries the latest data on the server at a user-defined interval. This method of pulling data requires PHP to implement Ajax
PHP implementation Ajax Long polling
The traditional Ajax polling method, the customer service side at the user-defined time interval to the server to query the latest data. This kind of pull data takes a short time interval to ensure the accuracy
1. PrefaceWeb-side IM technology is not easy to implement due to limitations in browser design, and there are roughly 4 main web-end instant Messaging solutions: Traditional Ajax short polling, Comet technology, WebSocket Technology, SSE
1. PrefaceWeb-side IM technology is not easy to implement due to limitations in browser design, and there are roughly 4 main web-end instant Messaging solutions: Traditional Ajax short polling, Comet technology, WebSocket Technology, SSE
The traditional Ajax polling method, the customer service side at the user-defined time interval to the server to query the latest data. This kind of pull data takes a short time interval to ensure the accuracy of the data, but too short a time
The reverse push technology is very popular now, and long polling is one of the key technologies for implementing reverse push.
// If you want to publish this article, please indicate the exit, no outgoing copyright notice, I do not like to see this
The traditional Ajax polling method, the customer service side at the user-defined time interval to the server to query the latest data. This method of pulling data takes a short time interval to ensure the accuracy of the data, but too short a time
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.