You are here: Re: what happens when client press "Stop"? « PHP Programming Language « IT news, forums, messages
Re: what happens when client press "Stop"?

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация