HTTP Response problem

Discussion in 'PHP' started by harryoxford, Sep 18, 2009.

  1. #1
    Question
    I have a PHP script, which executes more than 10 minutes, so I used
    PHP Code:


    set_time_limit( 0 );



    But after getting exactly "9958526" characters response, execution is being stopped(or the HTTP connection is closed?). What could be the problem?

    I tried to execute the script 3 times and every time I got exactly "9958526" characters.
     
    harryoxford, Sep 18, 2009 IP
  2. phprightnow

    phprightnow Peon

    Messages:
    296
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    This can happen possibly because your browser times out, or possibly a timeout on your server's web server. Scripts like this lasting this amount of time are best to be executed via command line (php.exe for windows, or php via linux on SSH).
     
    phprightnow, Sep 19, 2009 IP