Example of referencing the Chinese document of "Star prodigal son" php: a chat room is a secret weapon for boring people on the Web site. At the same time, webmasters or other employees can kill time here. Even if you don't have a big online relationship, the following is an example of the "star prodigal son" php Chinese document:
The chat room is a secret weapon on the Web site to send boring people. At the same time, webmasters or other employees can kill time here. Even a big online relationship, even if not, can at least increase the typing speed.
The chat room is actually a CGI program applied by multiple people. The program clears the input strings of each user according to the time the system receives and then sends them to each application. The difference between the Web chat room and the BBS chat room is that the BBS chat room can be sent to every online user who receives a sentence in the chat room immediately; because the Web CGI program cannot be connected like the BBS telnet, Web CGI must send the information as quickly as possible and end the connection. This situation occurs because of the Web chat room or the application of HTTP transmission protocol. in the HTTP version, whether it is 0.9, 1.0 or 1.1, the Port of the network connection cannot be used for a long time.
To determine the title of a message that cannot be transmitted immediately and update the title of the message, Netscape applied a new technique after version 3.0 browser, internet Explorer has also developed these Netscape skills. Netscape divides it into two tips: Server Push and Client Pull. Server Push: the Web Server sends materials in multi-MIME encoding to the application end. Currently, few websites use this method, while Client Pull uses the meta tag of HTML, the http-equiv = 'refresh' attribute is used to re-load the presentation materials. As for the loading time, the content attribute is used to achieve this.
Labels are usually placed in..So that the browser can only be prepared to update the application's webpage. The following is a practical example of meta and PHP. it is set to reload every 15 seconds.
If Server Push or Client Pull is not used as the chat room, is there any other way to enable Web browsers to chat? The answer is OK. You can use Java or ActiveX (IE4 or 5 only) to develop exclusive Browser Plug-in programs (such as Qimo's chat room), but this has nothing to do with PHP, this is not the focus.
In addition, because the comments of all netizens are updated on a regular basis, in order to avoid writing half of the unwritten strings due to refresh, it is necessary to use the frame page frame technique in the chat room. The following example shows the main program of the chat room.
Chat room
<BR> <body> <BR> The application page is required for this chat room. your browser cannot apply the application. <BR> </body> <BR>
The program uses frame to bring out two PHP programs. we recommend that you put them in the same directory, such as/chatroom, for future protection. In addition, to list. php and post. php can apply the same variables. in the following example, the common path change is placed in env. inc, which can be placed in the/chatroom or the PHP include setting path of the Web server (such as Apache.
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service