RE: [PHP] sleep() function question

2001-07-23 Thread Patrick Lynch

Is 
output_buffering = On
set in the php.ini file?

If it is set to on, no content or headers are sent back to the browser until
the whole page has been processed by PHP.

Best Regards,
Patrick Lynch.  

Eirco
Web: http://www.eirco.com


-Original Message-
From: Andrew Brampton [mailto:[EMAIL PROTECTED]] 
Sent: 23 July 2001 02:38
To: drb
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] sleep() function question


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]

-- 
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]




Re: [PHP] sleep() function question

2001-07-22 Thread Andrew Brampton

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]