Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

chat program question 2

Status
Not open for further replies.

MJB3K

Programmer
Jul 16, 2004
524
GB
Hi, i am setting about making a chat program. How would i go about once someone has sent a message, it refreshes (or reloads) the page at the other persons computer?

would it be best to insert the messages to a db, then display it from there??

#person1

>>sends msg
>>insert to db
>> page load at other end?? << how i do this?? is it possible??

any ideas/links/downloads/tutorials??

thanx:)



Regards,

Martin

Gaming Help And Info:
 
You either need to use a server push (not recommended) or have the client to a META refresh every so many seconds.

Either way, your reinventing the wheel. I just had a customer request a chat on his website, so I looked at what was available. I boiled to down to two, openphpchat (sourceforege) and bribble (google for it). He was all about form and not features, so he went with bribble because it has a pretty flash front end.
 
When you use server push, the connection between the server and the browser stays open indefinitely. Content is sent from the server to the browser using an HTTP stream that is like a multipart MIME document.


Want the best answers? Ask the best questions!

TANSTAAFL!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top