Jump to content

PHP,MySQL,J-query Ajax Chatroom


Bhekisizwe

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.