Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2005051

Re: [PHP] sleep function From: James Williams (jamwil.php <email protected>)
Date: 05/12/05

I just tried a couple of output_buffering on a test script I made and
it won't work... It simply waits for 10 seconds then displays
everything... Kinda sucks.

On 5/12/05, Richard Lynch <ceo <email protected>> wrote:
> On Thu, May 12, 2005 12:39 pm, virtualsoftware <email protected> said:
> > I want to create a script that displays all names from a database once per
> > second.
> > A part of the script look like this.
> >
> > for ($i=0; $i<$total_names; $i++)
> > {
> > echo "name<br>";
>
> http://php.net/flush
>
> > sleep (1);
> > }
>
> --
> Like Music?
> http://l-i-e.com/artists.htm
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

-- 
jamwil.com

-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php