Monk3h Posted May 2, 2008 Share Posted May 2, 2008 I am currently using a simple PHP chat room in my game, when people post its put into a Database and the every 20 second the page refreshes automaticly using this code. <META HTTP-EQUIV=Refresh CONTENT="20;url=chatmsgs.php"> My problem is after a hwile the refreshes get faster and kind of catch up with them selfs. Slowing the refresh down only slows chat down and just takes longer for the chat to go crazy and just keep refreshing over n over very quickly. Is there any way around this? Quote Link to comment Share on other sites More sharing options...
Monk3h Posted May 2, 2008 Author Share Posted May 2, 2008 Bump? Quote Link to comment Share on other sites More sharing options...
conker87 Posted May 2, 2008 Share Posted May 2, 2008 You probably should look into AJAX. Quote Link to comment Share on other sites More sharing options...
benphp Posted May 2, 2008 Share Posted May 2, 2008 I'm not sure why it would refresh faster- 20 seconds is 20 seconds. I wouldn't store chats in a db myself - I'd go for a text file. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.