elementz Posted July 22, 2006 Share Posted July 22, 2006 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 https://forums.phpfreaks.com/topic/15331-how-to-make-live-chat-between-2-users/ Share on other sites More sharing options...
shocker-z Posted July 22, 2006 Share Posted July 22, 2006 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.RegardsLiam Link to comment https://forums.phpfreaks.com/topic/15331-how-to-make-live-chat-between-2-users/#findComment-62053 Share on other sites More sharing options...
steelmanronald06 Posted July 22, 2006 Share Posted July 22, 2006 Perhaps AJAX and a database? That is all you would really need, and it might save on bandwidth a bit. Link to comment https://forums.phpfreaks.com/topic/15331-how-to-make-live-chat-between-2-users/#findComment-62055 Share on other sites More sharing options...
freakus_maximus Posted July 22, 2006 Share Posted July 22, 2006 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 https://forums.phpfreaks.com/topic/15331-how-to-make-live-chat-between-2-users/#findComment-62061 Share on other sites More sharing options...
Joe Haley Posted July 22, 2006 Share Posted July 22, 2006 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 https://forums.phpfreaks.com/topic/15331-how-to-make-live-chat-between-2-users/#findComment-62066 Share on other sites More sharing options...
Slowchaos Posted September 25, 2006 Share Posted September 25, 2006 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 https://forums.phpfreaks.com/topic/15331-how-to-make-live-chat-between-2-users/#findComment-98449 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.