painful php scripts

Associate
Joined
16 Jun 2003
Posts
1,858
I was just having a scan at the backlinks from one of my blogs and found some very interesting stuff on someone who was linking in.

I found this error message on their site :

"f you are the webmaster, your account may have gotten this error for one or more of the following reasons:

* Your account has used more than its share of the cpu in the past 60 second sliding window.
* Your account has too many concurrent processes running simultanously.
* Your account has consumed too much memory.
* Your site was recently very busy trying to run inefficient scripts.

The solution would be to optimize your applications to use less CPU.
Adding appropriate indeces to your SQL tables can often help reduce CPU.
Using static .html documents instead of painful .php scripts will practically eliminate CPU usage."

painful php scripts? wtf?

aren't linux servers meant to run php nice and fast?
 
It's easy to write an inefficient PHP script no matter how fast the server. Compared to serving a html page, a php involves a lot more CPU cycles.
 
Back
Top Bottom