php from command line -- how do I extend script timeout?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Google Mike

    php from command line -- how do I extend script timeout?

    I have a need for a web app to collect some data and then spawn a
    separate process (thread) to handle the request asynchronously,
    disconnecting the user immediately and sending them an acknowledgement
    that we're processing it and they should check their email within the
    hour.

    This can be done with exec or popen and then call a script at command
    line with php -q scriptnamegoesh ere.php.

    { Aside: BTW, I highly recommend you do "php -q script.php >>
    debug_output.lo g" so that you have at least some resort for
    troubleshooting . }

    However, I just ran a very long test script and it finally stopped and
    said it timed out. I'm sure that someone has figured out a statement
    you place in your PHP script to make it extend the timeout period, or
    am I "strangely out of luck"?
  • Andy Hassall

    #2
    Re: php from command line -- how do I extend script timeout?

    On 23 Dec 2003 13:00:45 -0800, googlemike@hotp op.com (Google Mike) wrote:
    [color=blue]
    >I have a need for a web app to collect some data and then spawn a
    >separate process (thread) to handle the request asynchronously,
    >disconnectin g the user immediately and sending them an acknowledgement
    >that we're processing it and they should check their email within the
    >hour.
    >
    >This can be done with exec or popen and then call a script at command
    >line with php -q scriptnamegoesh ere.php.
    >
    >{ Aside: BTW, I highly recommend you do "php -q script.php >>
    >debug_output.l og" so that you have at least some resort for
    >troubleshootin g. }
    >
    >However, I just ran a very long test script and it finally stopped and
    >said it timed out. I'm sure that someone has figured out a statement
    >you place in your PHP script to make it extend the timeout period, or
    >am I "strangely out of luck"?[/color]



    --
    Andy Hassall (andy@andyh.co. uk) icq(5747695) (http://www.andyh.co.uk)
    Space: disk usage analysis tool (http://www.andyhsoftware.co.uk/space)

    Comment

    Working...