PHP to implement online chat function for help

Source: Internet
Author: User
Tags php online
PHP online Chat

PHP to implement online chat function for help
PHP to implement the online chat function for help eager!


Reply to discussion (solution)

http://tutorialzine.com/2010/10/ajax-web-chat-php-mysql/

Somebody, come on!

Comet or WebSocket

The principle is to constantly request the brush data. JS Ajax

Baidu Search ... Ajax

It's simple! Is the usual form submitted below the submission shown above and then JS set a few seconds to automatically refresh once

http://www.phptogether.com/archives/13413

Comet or WebSocket +

1, Ajax constantly refreshed. Simple and easy to get started. Large consumption of server resources
2, Comet is an Ajax long connection, under the Baidu know, now the web chat this piece is this. Strong browser compatibility, difficult to get started
3, WebSocket is HTML technology, low version IE does not support. is the direction of the future.

Suggest the latter two kinds!

WebSocket is HTML5 technology, low version IE is not supported. is the direction of the future.

The upstairs was wrongly sent. I don't have permission to edit

  • 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.