Re: PHP Web-Chat Software

From: Date: Tue, 13 Apr 2004 09:18:47 +0000
Subject: Re: PHP Web-Chat Software
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-183212@lists.php.net to get a copy of this message
Apr 13 at 4:04pm, Terence wrote: > <?php ob_end_flush(); > while (10==10) { // cool while loop > /* ... */ flush(); sleep(1); } ?> Not sure I see the efficacy of this approach for the problem at hand, but what gets me is the cool while loop :) 10==10 is always going to evaluate true, and I realize that this is an infinite loop (until script times out) but why not just while(true) { } or, more commonly, while(1) { } ...? That's a rhetorical question, by the way :) --Kelly

« previous php.general (#183212) next »