Re: sleep and usleep not working ??

From: Date: Tue, 23 Jan 2001 16:52:57 +0000
Subject: Re: sleep and usleep not working ??
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-36217@lists.php.net to get a copy of this message
I have to add that I am using the latest PHP version. It was Windows and Linux servers I was talking about. usleep work in the way that it return right away without any sleep time. Benny ""Benny Nissen"" <news@beastware.dk> skrev i en meddelelse news:94k0ql$em$1@toye.p.sourceforge.net... > Hi All > > I have tried to get this to work but it does not produce any output in the > browser - why > > $i = 1; > while ($i) > { > if(connection_aborted()) > break; > > echo $i; > echo "<BR>"; > $i++; > > sleep(1); > //usleep(1000); > } > > It turns out that the sleep and usleep does not return as far as I can tell. > If I use usleep the wait time parameter have no affect on program execution > ?? > Tried this on both Windows and Linux. > > Benny > > > > -- > 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 (#36217) next »