473,386 Members | 1,819 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Logic of PHP based chat application like Google Talk

mujeeb i
Please somebody know what is the logic of chat like google tlak..?
please tell me how to write chating code for php..with example...
Aug 2 '12 #1
3 3402
ariful alam
185 100+
You can use database to develop chat application. you need to create a few tables for chat application to check users online or not and to store chat texts in database. chat text table may contain from_user, to_user, chat_text.

in interface you can use ajax in setTimeout() function of javaScript to check the chat_text using php from database server and show the text in specific user's chat window.
Aug 2 '12 #2
what is the key value of enter key ?
Aug 2 '12 #3
ariful alam
185 100+
suppose, A and B are chatting. In A's window there will be a chat window using a DIV tag named B_chat. so, you have to query "select chat_text from chat_table where (from='A' or from='B') and (to='A' or to='B') and chat_date=getdate()" in database using ajax from server side script. this may return all the chat text between A and B on current date. And you have to write those in B_chat DIV using innerHTML/innerText.
Aug 2 '12 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: rokia | last post by:
sorry for this thread. my english is not good enough to communicate with friends here, so I want to find some newsgroup which is hot. :) something like chating.. talking... etc. any advice?...
16
by: Linus | last post by:
Being a ASP developer for a consultant company thinking of starting developing with ASP.NET I have read literally hundreds of web pages and posts in discussion forums on the Internet to get an idea...
5
by: ltt19 | last post by:
HI folks, So, I have a small netowork at my home, and would be usefull if I had a INstant Messenger, but that just works on LANs, something like "net send" command used to be, however it could...
2
HI
by: daya | last post by:
Hi all.... I have written chating program......But i am unable to read the stream(what the server send).....Also i have attached my complete code pls let me know wat is the solution..........
24
by: Tim | last post by:
apologies if this has been done to death already... I have been a webdev for many years now, and I have mastered the art or layout with tables. I now see many newcomers rubbishing table layout...
1
by: mohzin | last post by:
HI Guys this is Mohzin Khan im a graphic desinger ..mostly do print media work.. new to scripts.com. welll last night i was chating on msn then suddenly all chat window disappear and when i saw...
0
by: sudha madhuri | last post by:
videos-singles inside-{for date-chating mails} http://www.6URL.com/15EL India's greatest social networksite-with all features. here you watch videos (adult-romance-fun-updates) make your...
3
by: narasimha26 | last post by:
How to do online chatting in asp.net1.1 and sqlserver2000
1
by: narasimha26 | last post by:
Can Anybody help me regarding the chating in Asp.net1.1-Sql-Server 2000
1
by: nekha | last post by:
How I Can To Send instant web Alert Message only online members in chating time using asp vb script ,please any one help me
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.