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? Link to comment https://forums.phpfreaks.com/topic/103801-meta-http-problem/ Share on other sites More sharing options...
Monk3h Posted May 2, 2008 Author Share Posted May 2, 2008 Bump? Link to comment https://forums.phpfreaks.com/topic/103801-meta-http-problem/#findComment-531800 Share on other sites More sharing options...
conker87 Posted May 2, 2008 Share Posted May 2, 2008 You probably should look into AJAX. Link to comment https://forums.phpfreaks.com/topic/103801-meta-http-problem/#findComment-531839 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. Link to comment https://forums.phpfreaks.com/topic/103801-meta-http-problem/#findComment-531842 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.