I know very little about PHP, but in other languages, what u describe
happens because the webserver doesn't send the output until the excution is
done...

But you can make it write your output as its generated... check out the
function "flush"

also after 20seconds of looking, I found "ob_implicit_flush" that may help
as well..

Hope I could help
Andrew
----- Original Message -----
From: "drb" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, July 22, 2001 11:25 PM
Subject: [PHP] sleep() function question


> just wanted to make sure I was not doing anything incorrectly.
>
> I want to return some values to the screen and then sleep(), then return
> more values.
> It seems that nothing is returned till the sleep is over and then all the
> values are returned at once.
>
> Is this the natural function of sleep();
>
> thanks,
>
> DRB
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to