Script stops running after 250 second

Discussion in 'PHP' started by Matjong, Oct 22, 2007.

  1. #1
    I have a weird problem... Somehow, my script quits running after approximately 250 seconds (could be a few seconds more or less).

    There is no output or error, it just doesn't run anymore after this period of time.

    I have set set_time_limit to unlimited. This line of code probably works, if I remove it it times out after 30 seconds.
     
    Matjong, Oct 22, 2007 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    Try setting these 2 lines on top and see if you get any errors.
    
    error_reporting(E_ALL);
    ini_set('display_errors', '1');
    
    PHP:
     
    nico_swd, Oct 22, 2007 IP
  3. Matjong

    Matjong Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    No difference. Already tried to do that. Thanks though.
     
    Matjong, Oct 22, 2007 IP
  4. Matjong

    Matjong Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Btw, I just ran it by SSH on the script and it doesn't quit there, it works there...

    Anyone who can make something up out of that (btw, the script quites in both firefox and IE)?
     
    Matjong, Oct 22, 2007 IP
  5. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #5
    nico_swd, Oct 22, 2007 IP
  6. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #6
    You should post the code, that would be much more helpful and you'll have more chance of getting real help ...
     
    krakjoe, Oct 22, 2007 IP
  7. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #7
    ^^ Wow... where the fuck have you been?! lol
     
    nico_swd, Oct 22, 2007 IP
  8. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #8
    Yeah hi nico :)

    Life really fell apart for me a few months ago, I didn't even have a house nevermind a pc :(

    You remember how I spent every waking hour here on DP posting freebies and answering questions, well that was almost the end of me, I got thousands of pounds into debt, and was evicted from my house, because I had about 400 people on my msn list but I never got any work done, every minute I should have been working I was chatting or browsing DP. A old friend of mine has helped me out of debt and given me a new platform to earn on, you'll be seeing more of me on dp from now on, just not so much in the freebie forums, and never in the general discussion forums ...

    See you around nico :)
     
    krakjoe, Oct 22, 2007 IP
  9. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #9
    Damn... I'm sorry to hear this, man. :(

    I'm kinda like that too though.... always here instead of working, lol. I hope things are getting better for you now.

    Glad to have you back. :D Stay up!
     
    nico_swd, Oct 22, 2007 IP
  10. Matjong

    Matjong Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    The PHP code works fine, I can successfully run it by SSH or cron. It seems something like... an apache or either clientside error, I don't know...
     
    Matjong, Oct 23, 2007 IP
  11. drewbe121212

    drewbe121212 Well-Known Member

    Messages:
    733
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    125
    #11
    Perhaps apaches max_execution_time is overriding it?
     
    drewbe121212, Oct 23, 2007 IP