Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-02-2003, 12:45 AM   PM User | #1
LaundroMat
New Coder

 
Join Date: Oct 2002
Location: Ghent, Belgium
Posts: 45
Thanks: 0
Thanked 0 Times in 0 Posts
LaundroMat is an unknown quantity at this point
Unhappy Server time-out

I'm experiencing server time-outs on my local server. The page that is being requested is quite a light page (with three hits to a MySQL database), and I'm pretty sure it's not the page in itself that causes the time-outs..

fyi:
PHP Code:
Fatal errorMaximum execution time of 30 seconds exceeded in c:phpdevwwwpetruscontentkalender.php on line 94 
.

Hmm, upon checking line 94, I see it's the first hit to the DB. Could this be a MySQL problem? If so, what could be its causes?
__________________
Those innocent fun games of the hallucination generation
LaundroMat is offline   Reply With Quote
Old 03-02-2003, 12:48 AM   PM User | #2
LaundroMat
New Coder

 
Join Date: Oct 2002
Location: Ghent, Belgium
Posts: 45
Thanks: 0
Thanked 0 Times in 0 Posts
LaundroMat is an unknown quantity at this point
Lightbulb Aha!

Solved...

Apparently, I was looking in a resultset that was completely empty. I added a check whether the set was empty and if so, not to try and search the DB any further.
__________________
Those innocent fun games of the hallucination generation
LaundroMat is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:00 PM.


Advertisement
Log in to turn off these ads.