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
  1. #1
    New Coder
    Join Date
    Sep 2012
    Posts
    87
    Thanks
    18
    Thanked 0 Times in 0 Posts

    Question Fatal error: Maximum execution time of 10 seconds exceeded in /home/a3763404/public_h

    I'm getting the following error when I try to index my webpages:

    Fatal error: Maximum execution time of 10 seconds exceeded in /home/a3763404/public_html/api/api.php on line 52
    How do I increase the maximum execution time?

  • #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,979
    Thanks
    4
    Thanked 2,659 Times in 2,628 Posts
    By using set_time_limit() and providing it the number of seconds. Don't give it 0 though.
    10 seconds indicates you have a lot of processing that is happening. If this isn't the case, than chances are you have an infinite loop condition.
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 


  •  

    Posting Permissions

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