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 Sandman on 12/16/77 11:57

In article <1157487807.151365.18690@h48g2000cwc.googlegroups.com>,
"ZeldorBlat" <zeldorblat@gmail.com> wrote:

> 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>

Yeah, but you can only perform server-side actions, no output will be
sent to the browser after the user clicks stop. Just worth mentioning.


--
Sandman[.net]

 

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

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