Activity timeout

Discussion in 'PHP' started by MayurGondaliya, Apr 14, 2008.

  1. #1
    Hello,

    How to change the default PHP execution time?
    I am receiving the error:

    FastCGI process exceeded the default activity time.
     
    MayurGondaliya, Apr 14, 2008 IP
  2. qeorge

    qeorge Peon

    Messages:
    206
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Use set_time_limit()

    set_time_limit(0);

    will give it infinite time, or pass a number of seconds you want it to be able to execute. Infinite is probably unwise.

    You can also use max_execution_time() in the same manner.

    http://us.php.net/set_time_limit
     
    qeorge, Apr 14, 2008 IP
  3. roberto99

    roberto99 Guest

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You can use:
    ini_set ("max_execution_time", 1500);
     
    roberto99, Apr 14, 2008 IP