Page 1 of 2
how to build a simple Chat room
Posted: Thu Feb 17, 2005 2:49 am
by Smackie
i want to learn how to make a simple little php chat room with banning control and admin control can anyone give me a good tutorial website for this or even help me with making some of the scripts or something please...????
Posted: Thu Feb 17, 2005 3:18 am
by Chris Corbyn
I think you'd normally use Java Applets or similar for this not PHP
Posted: Thu Feb 17, 2005 3:29 am
by Smackie
i seen alot of php chat rooms and i would like to kinda put one of my own together.. i would like to use java but right now i wanna make a php chat room...
Posted: Thu Feb 17, 2005 4:01 am
by markl999
Do you mean a discussion board/forum like this one or a live interactive chat?
Posted: Thu Feb 17, 2005 5:41 am
by n00b Saibot
try to look into
phpMyChat for further info on this matter.
Posted: Thu Feb 17, 2005 8:28 am
by Smackie
see i tried that chat room it was crappy as hell.. and it doesnt have all the features i want to have on my chatrooms i know i can get it and add to it but theres other stuff i really like to do as well... like i would like it to set at the bottom of my site where all my users can chat with everyone while playing my game im building... and i would like to have it when the user signs in the user gets login on the chat room as well..... i just want a good tutorial for this...
hi
Posted: Thu Feb 17, 2005 9:23 am
by s.dot
Hi, I have experimented with many PHP chatrooms for my website. I've tried running an infinite while loop to maintain an http connection so the page would never refresh (causing it to blink). This worked for a few minutes, but inevitably it uses up too much server RAM and is very inadequate. Then I wrote a program that used hidden iframes to post to a page, that was appended to with a javascript. This works, but it required PHP sessions (that I'm not too familiar with) and my sessions always timed out. The best chat program that I've found BY FAR is an IRC based chat from
http://www.everywherechat.com . It is the perfect chat, and it's free. I wouldn't use anything else. All it requires is you posting a simple java applet code on an HTML page.
Posted: Thu Feb 17, 2005 3:23 pm
by Smackie
Like i said before i dont want to use a chat room thats already built i would like to make my own because i cannot find a chat room to fit my needs so thats why i want to build one on my own all i need is a good tutorial that will give me enough idea's to build one...
Posted: Thu Feb 17, 2005 3:33 pm
by feyd
Posted: Thu Feb 17, 2005 3:38 pm
by Smackie
not much help there but i think im just going just start throwing codes everywhere and try coming up with a good idea and make one up myself thank for your guys help anyways....
Smackie
Posted: Thu Feb 17, 2005 4:03 pm
by Trenchant
if you ever do come back...
Look in the "Code Snippets" section. There was a post on there a while ago for a PHP chat program backended by IRC. It was actually a bot in that post but it would be a good place to get started.
Using php for a bot is just asking to use a ton of bandwidth however.
Posted: Thu Feb 17, 2005 4:43 pm
by s.dot
well here's a good tutorial that shows you how to build one that you can modify yourself.
http://code.jenseng.com/jenChat/
Posted: Thu Feb 17, 2005 4:59 pm
by Smackie
thank you scrotaye it looks useful for what i want to do.....
Posted: Thu Feb 17, 2005 5:56 pm
by shiznatix
..why dont u just use some extreamly simple php based mesage board and just throw in a metta refresh tag for refresh every half second because that is all the jenChat does

. hell u can even use txt files and leave out all the javascript. if you want a real live feed script you have to use either somthing irc based or use java
Posted: Thu Feb 17, 2005 6:04 pm
by Smackie
well for 1 like i said i want to build my own all im going to do is look at jenChat and see how its setup and stuff.. for 2 i want a php chat room and it will refresh every 20 seconds... and for 3 i dont like irc programs they aint my thing to use and on java part im going try and make one later on after i learn Java......