Jump to content

Chatting System

- - - - -

  • Please log in to reply
4 replies to this topic

#1
liri ayekpam

liri ayekpam

    Newbie

  • Members
  • Pip
  • 8 posts
Dear All,
I have a website where only few registered members will be there. I would like to integrate chating system for these registered members. After login user will be able to chat with any members. I am very much new to programming. Please help me out in finding the solution. Thanks in advance

#2
Gikoskos

Gikoskos

    Newbie

  • Members
  • PipPip
  • 11 posts
Check this out :chat.
I think it is developed in Java and i heard that its quite easy to install it on your website.

#3
liri ayekpam

liri ayekpam

    Newbie

  • Members
  • Pip
  • 8 posts
I am sorry I didn't mentioned the technology. I am using only PHP, JavaScript and MySql. I would like to have chat application with PHP, AJAX, Jquery and MySql.

#4
Vaielab

Vaielab

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 547 posts
Depend on what type of chat you like.
For a simple live chat (one room, everybody talk) you could use a javascript interval to get the data every X seconds via ajax

setInterval(function()

{

     $('#chatWindow').load('chat.php');

}, 3000);

and on chat.php simply fetch the chat log from mysql
This exemple use jquery, but you could change it for an other library, or write your own ajax call

But if their a lot of person at the same time, this can overload your server.

You could think of someway like with session, to load only the new text, and not all the conversation, it could help the server

#5
rhossis

rhossis

    Learning Programmer

  • Members
  • PipPipPip
  • 46 posts
Hey, you could borrow a leaf from the illustration in this book http://www.cristiand...at_and_JSON.pdf I have seen it recommended on a number of forums




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users