PHP-Push technology implements the refresh function Serverpush a period of time before the hot amp; ldquo; Push amp; rdquo; technology, but most of the information on the Internet is cgi, occasionally, I see such an introduction on a French website... PHP-Push technology for refresh
Server push is a very popular "push" technology some time ago. However, most of the information on the Internet is cgi. sometimes I see such an introduction on a French website. Unfortunately, I cannot understand French, I can only understand something in his program. now I will give you some examples to learn. It can be used for data transmission in chat rooms, news updates on websites, and various frequently updated pages.
Previously, we used to add tags to the page.
Or use the timeout + reload of javascript. However, the refresh method depends on the time settings, and the data cannot be transmitted continuously and the time is difficult to determine. The Server that uses Server push establishes a permanent connection with the client after the client makes a request, and then the Server will continuously push the data packets to the Server according to the client's requests. The latency that you don't notice will make you feel that the server's response and your request have reached the level of synchronization.
Let's take a look at the example and explain it again.
Img. php
This is a permanently executed page (with the network constantly) that constantly outputs the image content. The following is the called page ., Token changes ). Then you will see that the image on the called page is automatically updated.
Address:
Reprinted at will, but please attach the article address :-)