Dangit! That is the second one I have hit the resolve on, and it hasn't been resolved. Can you guys take the resolved off 🙁 Sorry
I am creating a chat, and it works mint with one person in it. However it lags when two people get on. Is there anything I should be doing to make it work for more than one person? I have seen something about sockets or something, and have never heard of these, but maybe they will help. Any ideas how I could make it so it works with more than one?
Here is how I am doing my chat..(Php/Mysql/Flash)
Whenever you enter, there is nothing on the chat.
You start a loop, and with that loop I load check.php. This checks to see if a new message has been posted. Whenever you push the send button, a variable will be changed to true, that's how it checks. Well, if it is set as true then it loads a file called new.php. This new.php reads the last line of mysql database and returns it.
Very simple actually, but it gets really lagged and stuff whenever a new user gets on(meaning two people on the chat)
Do you know, or know any resources, that would tell me how I can make a chat speed up with more than one person. Or some way of handling more than one user with live updates and stuff?
Edit: You can view it here: http://www.chaseschwalbach.com/chat/ It is still buggy, like you may have to push enter twice to make the login work and stuff, but the chat is fine unless there are more than one person. The design was made by dsi.lord, and I did all programming