Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2003
    Location
    Chennai
    Posts
    11

    Unanswered: Maximum execution time exceeded

    Hi all,

    I am getting the following error while running a script:

    " Fatal error: Maximum execution time of 1 second exceeded in /file_path/DB.php on line 141"


    I have tried changing the value in 'php.ini' file to a higher value also. Even this does not seem to work.

    Any idea why this happens & how to tackle this issue ?


    Thanks & Regards,
    Navanee

  2. #2
    Join Date
    Oct 2003
    Location
    Slovakia
    Posts
    482

    Re: Maximum execution time exceeded

    Originally posted by rnavanee
    Hi all,

    I am getting the following error while running a script:

    " Fatal error: Maximum execution time of 1 second exceeded in /file_path/DB.php on line 141"


    I have tried changing the value in 'php.ini' file to a higher value also. Even this does not seem to work.

    Any idea why this happens & how to tackle this issue ?


    Thanks & Regards,
    Navanee
    call following function at beginnig of the PHP script:

    PHP Code:
    set_time_limit(0); 
    If this will not help you then go to the webserver configuration and increase the number for timeout (in Apache directive is "Timeout" and default value is 60 seconds)

  3. #3
    Join Date
    Jan 2004
    Location
    India
    Posts
    168

    Re: Maximum execution time exceeded

    If the error line is inside the loop then please go through the loop once again. May be ur loop gets inot an infinity.

    Regards

    Rajesh

    Originally posted by rnavanee
    Hi all,

    I am getting the following error while running a script:

    " Fatal error: Maximum execution time of 1 second exceeded in /file_path/DB.php on line 141"


    I have tried changing the value in 'php.ini' file to a higher value also. Even this does not seem to work.

    Any idea why this happens & how to tackle this issue ?


    Thanks & Regards,
    Navanee

Posting Permissions

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