[PHP]Guild Chat

05/02/2014 10:00 szymek111#1
So i want to create guild chat in my private server for sfgame . And i don't know how . Can anyone give me tip ? Does i need to save text in database?
05/02/2014 13:16 flogi333#2
Try to google up "Websockets". It is a technic for realtime communication, so it is exactly what you need. It also has the advantage that you dont have to reload the site to get up to date with messages. I use it for all my chat applications.

There is no need for a database or files, because it takes all the messages you recive, and sends it to all other connectet clients without writeing it on the hard disk. Of course you CAN record it if you want.

If you dont want to read into this thema, try this website. It looks like it could help you :)
[Only registered and activated users can see links. Click Here To Register...]

Oh, btw it is supported from a fu*****ing large part of modern webbrowsers, so you dont have to worry about that.
[Only registered and activated users can see links. Click Here To Register...]
05/02/2014 13:39 szymek111#3
I want to do this like in global server . That message is sent only to guild members not to all people .

Edit@ I tried using fiddler to see what normal server sent . And i discovered that it sent session id
and message . Also when you go to this link you can see your all messages xd.Which are in chat.

But i don't know what is this : random=%2&rnd=7165481591399034655749

PHP Code:
request.php?req=687186g36sQ840Dwq19308r827Gt5B98516lol%3B17&random=%2&rnd=7165481591399034655749 
And when i send message in my private server i got only

PHP Code:
0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0
xdd