On Fri, Feb 22, 2008 at 9:19 PM, K T Ligesh <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I have a php process running on lighty that should continue even if the
> user presses cancel in his browser. The default behavior is that the
> web-server will kill the cgi process on user cancellation. Is there some way
> I can prevent the user cancel from interfering with the php process. Can I
> ignore the web-server's kill in php or is this a configuration that should be
> handled at the web-server?
Check out these two functions:
ignore_user_abort():
http://php.net/manual/en/function.connection-aborted.php
connection_aborted():
http://php.net/manual/en/function.connection-aborted.php
The latter of which can help with logging if you want to see when
the user killed the connection.
--
</Dan>
Daniel P. Brown
Senior Unix Geek
<? while(1) { $me = $mind--; sleep(86400); } ?>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php