Re: Re: Stop PHP execution on client connection closed

From: Date: Tue, 13 Sep 2011 07:39:24 +0000
Subject: Re: Re: Stop PHP execution on client connection closed
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-314780@lists.php.net to get a copy of this message
On 13 September 2011 13:05, Marco Lanzotti <marco@lanzotti.com> wrote: > Il 12/09/2011 21:32, Al ha scritto: > > See > > http://us2.php.net/manual/en/function.connection-aborted.php > > As I wrote, PHP doesn't detect that client aborted connection until it > send some data. > During query the script doesn't send any data to client, so it doesn't > detect client aborted connenction. > I know this function, but it's useless to solve my problem... > You can use ob_start() to start output buffering and ob_end_flush() to send some data in the middle of script - that way your php script will send some data to the client earlier than finishing execution and hence detect the aborted connection. > > Bye, > Marco > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#314780) next »