how to keep the connection alive?

Discussion in 'PHP' started by falcondriver, Oct 11, 2006.

  1. #1
    hi there,

    i have php-script to calcute the answear to all questions in the universe and the meaning of life right on my webserver. because its just a 1.8ghz centrino notebook with 512mb this takes a lot of time, and i always get a timeout after 60 secs.
    tried it with ob_flush() after every result to feed the browser and keep the connection alive, but it didnt work, still get this timeout.
    is there a php-function to tell the browser that it takes more than just 60 secs for this script, or what could i do here...? or is the solution somewhere in the browser settings?
     
    falcondriver, Oct 11, 2006 IP
  2. T0PS3O

    T0PS3O Feel Good PLC

    Messages:
    13,219
    Likes Received:
    777
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Use exec() to run it threaded like the DP Keyword Tracker does. Also change your php.ini file to allow for longer execution times.
     
    T0PS3O, Oct 11, 2006 IP