Jump to content

PHP Execution -- very baffled


phpknight

Recommended Posts

This problem is just killing me.  I have a site where scripts sometimes take .1 seconds to run and sometimes take 25 seconds.  I know the latter from email, but the scripts are usually fast for me. 

 

Here is a list of what has been checked.  Anybody who is an expert in this sort of thing, I would appreciate help. 

 

Queries: I check every query time.  mySQL is always under 2% of the total time.

Site Traffic: I have a dedicated server for a small site--almost no load.

Images: Load on the client.  Not an issue.

Bad code: I seriously do not think any coding issue could do this.  Plus, bad code is always bad.

 

I email myself when a script takes too long.  The SAME script with the SAME query and loop will spend 10 seconds in the sidebar.  Twenty minutes later, it is 10 seconds in the body.  I cannot pinpoint this no matter what I do.

 

Has anybody experienced anything like this, and if so, what was the solution?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.