MySQL Connection Management in PHP – How (Not) To Do Things – Jay Pipes
Only recently studying Object Oriented PHP, I need to learn some new tricks and this article is a great help in not pissing off a hosting provider.
MySQL Connection Management in PHP – How (Not) To Do Things – Jay Pipes
Only recently studying Object Oriented PHP, I need to learn some new tricks and this article is a great help in not pissing off a hosting provider.
Because you can get a message like this from your hosting provider when a site starts getting real traffic.
Currently your site is using too many resources on our server (MySQL queries are taking up 20%+ of CPU usage on the server). Please look into the cause of this, particularly recent code changes and updates.
Thanks!
P.S. Please be aware that if your site continues to overuse server resources we may be forced to suspend your account.
Follow Me