I recently inherited some php code connecting to a mysql database.
There were some initial problems of connecting to the database but these problems have been solved.
However there is a chat system and users have been complaining about how slow it is.
I checked the logs and i see this message multiple times, "Cannot connect to database. Please, check config.php..."
This error message reminds me that when i took over the application, the hosting company released a statement saying they
no longer support "REGISTERED GLOBALS"
I wonder if this is affecting the chat system and generating some of the errors.
1. Does anybody know why i am getting this error "Cannot connect to database. Please, check config.php..." intermittently?
Note: Some users are still able to connect to the database
2. How can i check the code to make sure it has been modified to work with the hosting company settings?