Re: [PHP4BETA] httpd processes won't die since upgrade to PHP4
[email protected] Mon, 12 Jun 2000 11:32:33 +0200
| Newsgroups | php.version4 |
|---|---|
| Message-ID | <[email protected]> |
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