Bhekisizwe Posted June 13, 2011 Share Posted June 13, 2011 Hi, i have written a Chatroom using PHP,MySQL,Jquery (Ajax). Every 4 seconds i poll a PHP script via Jquery Ajax to update the chatroom messages and every 5 seconds i call another PHP script that updates the Chatroom OnlineUsers. The problem is after some time the chatroom slows down and eventually starts losing connection with the MySQL database. Then the whole website including the chatroom freezes and can not proceed further. What causes this and how can it be solved? Quote Link to comment https://forums.phpfreaks.com/topic/239243-phpmysqlj-query-ajax-chatroom/ Share on other sites More sharing options...
gizmola Posted June 14, 2011 Share Posted June 14, 2011 I will consult my magic eightball and get back to you on this later. See: https://www.msu.edu/~vandrag2/8-ball.html?pagewanted=all Quote Link to comment https://forums.phpfreaks.com/topic/239243-phpmysqlj-query-ajax-chatroom/#findComment-1229406 Share on other sites More sharing options...
Fadion Posted June 14, 2011 Share Posted June 14, 2011 For a good solution take a look at NodeJS and a Chat implementation with it. It excels in server-client Javascript applications and a chat is a typical one. Quote Link to comment https://forums.phpfreaks.com/topic/239243-phpmysqlj-query-ajax-chatroom/#findComment-1229479 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.