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? 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 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. Link to comment https://forums.phpfreaks.com/topic/239243-phpmysqlj-query-ajax-chatroom/#findComment-1229479 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.