Click to See Complete Forum and Search --> : How to set up Chat Room in PHP


webdzign
02-11-2005, 03:11 AM
Hi

I am planning on implementing a chat room on my website. Is it possible to do so in PHP? Or how should I go about doing it?

Thanks

scragar
02-11-2005, 03:38 AM
first you will need frames. second you will need a small DB.

on the DB create a new table for messages, each one should have a "Poster", "message" and an optional "to"(whisper) feild.

Then you want a PHP page to read in the last n, deleting any older ones and display them, including a javascript or meta-refresh.

Then you just want a make new message page, fairly easy. of course there will be slight props if you need any more info I'm going to be online for a while...

Jona
02-11-2005, 11:37 AM
If you don't have access to a database, or just want to use a small chatroom script, check out Chategory (http://www.cmmwebdesign.com/v3/software/chategory/) (by yours truly :D).

96turnerri
02-11-2005, 01:56 PM
Originally posted by scragar
first you will need frames. second you will need a small DB.

why? and why?

i would post two chat rooms i made, but i got told off by Jona last time i did that :p

http://php.richardturner.com/chat/
http://www.richardturner.com/chat/

Jona
02-11-2005, 02:39 PM
Originally posted by 96turnerri
why? and why?

i would post two chat rooms i made, but i got told off by Jona last time i did that :p

http://php.richardturner.com/chat/
http://www.richardturner.com/chat/

Last time you did that it was at Chategory's site. That's like Google placing ads for Yahoo and MSN search! :p (Note the superiority, also. :D Hehe, just playing with ya'.)

96turnerri
02-11-2005, 02:48 PM
Originally posted by Jona
That's like Google placing ads for Yahoo and MSN search!

:D

try googling 'search engine' does google come top? Nope
2nd? no
3rd? no
infact it comes 6th ;)

p.s. just bought that server i mentioned, so ill setup a domain for the web reference site once we decide on a name

Jona
02-11-2005, 04:09 PM
Unlike Yahoo, Google doesn't skew its search results. However, Yahoo still comes after Google when you google for "search engine," and MSN doesn't even show up on the first page. If you go to Yahoo Search and search for "search engine," Yahoo skews the results and brings up "search.yahoo.com" first. Google appears second on the list.