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"?
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"?
Comment