Erez D
2014-08-25 07:25:49 UTC
hi
i have a php cgi scripts that
1. generates an http response , this takes less than a second
2. do some stuff that may take some time, lets say a minute
when posting to that cgi, although the html is returned in less then a
second, the request is not closed until the minute has passed.
i want the http transaction to be closed when done (i.e. less than a minute)
but the php script to continue it's action (e.g. the minute it takes)
can i do it in php ? i.e. flush, or send eof, which will finish the request
but leave the php running until done ?
thanks
erez
i have a php cgi scripts that
1. generates an http response , this takes less than a second
2. do some stuff that may take some time, lets say a minute
when posting to that cgi, although the html is returned in less then a
second, the request is not closed until the minute has passed.
i want the http transaction to be closed when done (i.e. less than a minute)
but the php script to continue it's action (e.g. the minute it takes)
can i do it in php ? i.e. flush, or send eof, which will finish the request
but leave the php running until done ?
thanks
erez