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
4 replies to this topic
#1
Posted 03 August 2011 - 05:42 AM
|
|
|
#3
Posted 03 August 2011 - 09:18 PM
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
Posted 04 August 2011 - 06:19 AM
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
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
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 mysqlThis 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
Posted 04 August 2011 - 08:00 AM
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


Sign In
Create Account

Back to top









