Jump to content

How To Make Live Chat Between 2 Users?


elementz

Recommended Posts

How would I go about making a live chat between 2 registered users. I am making an RPG site and wanted to know how to allow two users to request a chat with each other and then to actually being able to chat. I want them to be able to press close image and the connection closes or when the browser is closed, any ideas on how to do this?
Link to comment
Share on other sites

I suppose if you wanted you could run an IRC channel and send a command to a botserv to join a unique channel and then direct the users to this channel with a key to enter using a java applet.. The only way to do it with PHP would be to store everything in a database and get the page to auto reload therefore fetching all text from the database. This will be slow and means the page would be reloaded every few seconds so not the best way. Can't see any fast way with PHP as it's clientside and gets parsed as soon as the page is loaded.

Regards
Liam
Link to comment
Share on other sites

Just a quick google and found some solutions (free) right out there...but this one in particular looked decent, although I cannot see if there are any moderator functions available...

[url=http://socket7.net/lace/]http://socket7.net/lace/[/url]

or if you want to really learn how to get started implementing check this out...nothing fancy here..

[url=http://www.ajaxprojects.com/ajax/tutorialdetails.php?itemid=9]http://www.ajaxprojects.com/ajax/tutorialdetails.php?itemid=9[/url]
Link to comment
Share on other sites

While the website is down at the molment,
http://www.phpfreechat.net/
is what i have used for chatting. The latest beta supports channels, private messaging, admins, ext. All the features you could want. The soure would be a bit dificult to modify to a novice, but its generally well-written.
Link to comment
Share on other sites

  • 2 months later...
I was experimenting with this and I managed to create a chat program using php sockets and a java applet / javascript on the client side. The java applet was hidden and the page where the chat took place was a standard html page. Unfortunately, the page is not currently active or I would provide a link to demonstrate. If anyone wants more details I might be able to help.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.