Posted by ZeldorBlat on 12/16/07 11:57
Chameleon wrote:
> I have a BIG php output and I start to transmit after client's request.
>
> What happen on server when client press "Stop"?
>
> PHP continues to send data? Where? Until the end?
It depends. By default, when the connection is aborted (i.e. when the
user presses the "stop" button in their browser) the script stops
executing. This behavior can be changed with the ignore_user_abort
directive in php.ini or with the ignore_user_abort() function. In this
case, the script will run to completion and you can detect the client
disconnect using connection_aborted().
More details can be found here:
<http://www.php.net/manual/en/features.connection-handling.php>
Navigation:
[Reply to this message]
|