Chat program (one) _ PHP Tutorial using line writing

Source: Internet
Author: User
A chat program that uses the row-write method (one ). In the previous phase, I saw the chat program of mdjwq@yeah.net and the very small version of Daoxiang's Red Dragonfly. I carefully read their code and felt that this was a rare piece of code, especially for the first phase of getting started, I saw the chat program of mdjwq@yeah.net and the very small version of Daoxiang's Red Dragonfly, carefully read their code, and felt that this is a rare piece of code, especially for the new attackers, some skills are used in the program, which is of great reference value. I have added some features (online staff management, etc.) based on their code and experience, and changed the implementation method from TXT to MySQL (the best combination with PHP ), all programs are locally debugged and can be directly used by netizens who wish to have their own chat programs. After my personal homepage is complete, it will be used in conjunction with the Forum (The Forum has been fully installed, and other content will be migrated from chinaren to oso ), open a discussion column for Oracle (large website database platform) and MySQL (the best combination with PHP) database administrators.
Forum info table:
Create table lt_t_online/* Record Online personnel information */
(/* Name, last speaking time, IP address, status (0 Online 1 offline )*/
Lt_username varchar (12) not null,
Lt_lasttime datetime not null,
Lt_addrip varchar (20) null,
Lt_state char (1) not null
);

Create table lt_t_content/* chat info table */
(/* Speaker, object, confidentiality level, expression, color, content, time */
Lt_speaker varchar (12) not null,
Lt_speaked varchar (12) not null,
Lt_secrecy char (1) not null,
Lt_face smallint null,
Lt_color varchar (6) null,
Lt_content varchar (200) not null,
Lt_time datetime not null
);
.
The program consists of five parts:

...

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.