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

From: Date: Fri, 06 Apr 2001 22:52:45 +0000
Subject: Re: close tcp-IP connection before php-skript finishes
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-47521@lists.php.net to get a copy of this message
Genius! Thank thank thankyou! If I wasn't well rested I'd kiss you. Or more appropriately, I'd kiss the person that programmed that function in the first place...*rubs hands* Oh the fun I'm going to have figuring a way to actually use this for anything other than mail()... -- Plutarck Should be working on something... ...but forgot what it was. ""Steve Werby"" <steve-lists@befriend.com> wrote in message news:01b501c0be46$14cb7480$6501a8c0@workstation7... > "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/ > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#47521) next »