In my webpage, I need to display the some information which will be updating frequently. For that I am using ajax calls, and showing it in the page using innerHTML. Im making the ajax request on each 3 seconds.. And in the php page (ajax request handler), Im opening the mysql connection using mysql_connect and at the end of the script Im closing the connection using mysql_close. But the server is getting slow because of the repeated calls. Is there any alternate solution ? Or how can I improve the performance of this ?
Share
1 Answer