Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: Server time-out

  1. #1
    New Coder
    Join Date
    Oct 2002
    Location
    Ghent, Belgium
    Posts
    45
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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

  • #2
    New Coder
    Join Date
    Oct 2002
    Location
    Ghent, Belgium
    Posts
    45
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •