To the question about scripts running after a connection close...
| From: | terrence chay | Date: | Sun, 05 Aug 2001 09:27:26 +0000 |
| Subject: | To the question about scripts running after a connection close... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-61312@lists.php.net to get a copy of this message | ||
I'm sorry, I accidentally deleted the original e-mail.
By default the script will keep running even after a user presses the stop button on their client. This can be determined by using ini_get('ignor_user_abort') and checking the value. (NB: I'm not sure what the value is, the documentation defines it to be a string, but the settings seem to imply it is a boolean).
If you want a more ASP-like functionality (stops outputting when other side closes connection) then call the function
<?php
ignor_user_abort(0);
?>
I hope this helps,
Take care,
terry chay