Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this questionI want to build a cha开发者_如何学Ct application using PHP. Does anybody have any idea about it? If so please reply. The chat application must be user friendly, multiple chatting scenario must be there.
Sounds pretty straight forward.
Ajax-polling front-end -> chat_handler.php -> backend database
Done.
If you want to create a "Shoutout" type public chat system, it's pretty easy to achieve via PHP/MySQL/jQuery.
You just have to take input from a form. jQuery will submit values to a database via a backend php file.
To refresh the submitted messages after regular intervals you can use setInterval function availabe in jQuery.
Maybe this will help: http://net.tutsplus.com/tutorials/javascript-ajax/how-to-create-a-simple-web-based-chat-application/
just buy one if you don't want to code. Comet Chat is a good one, like Faceb00k. Just google
精彩评论