Re: [PHP4BETA] httpd processes won't die since upgrade to PHP4
[email protected] ("Chris Beach") Tue, 13 Jun 2000 09:28:56 +1000
| Newsgroups | php.version4 |
|---|---|
| Message-ID | <072c01bfd4c5$fad5baa0$7b00000a@CHRIS> |
Thanks for your help :)
I fixed the problem with:
while (!connection_aborted())
{
etc.
}
Chris :)
----- Original Message -----
From: <[email protected]>
To: "Chris Beach" <[email protected]>
Cc: <[email protected]>
Sent: Monday, June 12, 2000 7:32 PM
Subject: Re: [PHP4BETA] httpd processes won't die since upgrade to PHP4
> On Mon, Jun 12, 2000 at 04:13:49PM +1000, Chris Beach wrote:
> > Hi All :)
>
> plz read:
>
> http://www.php.net/manual/features.connection-handling.php
> >
> > I have a problem with the following code (sorry if this seems like a
bizarre
> > thing to do):
> >
> > <?php
> > while(true)
> > {
> > mysql("UPDATE A RECORD");
> > echo "Some stuff";
> > flush();
> > }
> > ?>
> >
> > When the user closes their browser the associated httpd process doesn't
die,
> > and the while loop continues to run. Obviously after a while the number
of
> > httpd processes becomes large and ultimately causes the server to crash.
> >
> > No suprises there you might say, however this has only been a problem
since
> > I upgraded from PHP3 to PHP4. I'm running Apache 1.3.12 on RedHat 6.1.
Any
> > ideas anyone?
> >
> > Thanks in advance,
> >
> > Chris
> >
> >
> > --
> > PHP 4.0 Beta Mailing List <http://www.php.net/version4/>
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> > To contact the list administrators, e-mail: [email protected]
>
> --
>
> Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!"
> Digital Collections Phone +49 40 235350 Fax +49 40 23535180
> Hammerbrookstr. 93 20097 Hamburg / Germany
>