Re: close tcp-IP connection before php-skript finishes

From: Date: Fri, 06 Apr 2001 03:02:56 +0000
Subject: Re: close tcp-IP connection before php-skript finishes
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-47383@lists.php.net to get a copy of this message
"Peter Kuppelwieser" <peter.kuppelwieser@limu.com> wrote: > I have an problem with on of our scripts, and some caching proxy servers > > the script produces output, then it does a flush(), > After this, the script does a sleep(10) and then it does a db-query without > producing html output. > > normally the browsers get the page after the flush() command > but on some proxy servers, the page is forwarded to the browser > only after the proxy server has terminated the connection to the apache > webserver (after the 10 secs). > > my question: > > Is it possible to terminate the tcpIP connection, before the php script ends? > (I think this would solve my problem) Perhaps register_shutdown_function() will do the trick. I've used it on scripts where a call to an external command or long DB operation took a long time, but didn't affect the browser output. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/

« previous php.general (#47383) next »