I emailed my web host after recently being kicked off their shared server and told I was using 1.5 of their 2 CPU's and that I'd have to sign up for the host's dedicated servers if I wanted to stay with them. They hadn't contacted me at any time to tell me there was a problem, and despite asking them, they didn't tell me when this problem began occuring, so that I might figure out what was causing it. I'm using a couple of PHP scripts (one uses MySQL additionally) on my site, and the rest of the PHP I use are simple include() and global define() calls, to minimize the files I'd need to edit and simplify my site.
First, can these simple includes and globals cause this? I'm thinking not, but I'm fairly new to PHP.
If it was caused by a script, I was hoping someone here might be able to tell me if they had problems with CPU usage from the same script, or heard of such. The scripts I used are as follows:
*
PHPNews (
http://newsphp.sourceforge.net/) (which also uses MySQL, and I didn't have a problem with PHPNews with a previous host)
*
CJ Random Quote
* PHP "Last Modified" script as follows:
Can any of these have caused the problem? I have to find a new host, and I want to make sure I won't have this problem again. Thank you.