Timeout

Discussion in 'PHP' started by projectWORD, Jul 21, 2008.

  1. #1
    Hi All,
    I have a script that loops lots of times. By the time it gets to the end of the loop, it stops. I then have to continue the script from half way in and it is a real pain in the b.side.
    Is there a timeout or a setting on my server that I need to change?
    Thanks
     
    projectWORD, Jul 21, 2008 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
  3. projectWORD

    projectWORD Active Member

    Messages:
    287
    Likes Received:
    2
    Best Answers:
    1
    Trophy Points:
    63
    #3
    Hi, I tried that but it dusnt seem to work. Any more suggestions>
     
    projectWORD, Jul 21, 2008 IP
  4. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #4
    How did you try it? This should work just fine:
    
    set_time_limit(0);
    
    PHP:
    ... (note that this must be placed above the loop!)
     
    nico_swd, Jul 21, 2008 IP