RE: [PHP] sleep() function question

From: Date: Mon, 23 Jul 2001 16:27:29 +0000
Subject: RE: [PHP] sleep() function question
Groups: php.general 
Request: Send a blank email to php-general+get-59239@lists.php.net to get a copy of this message
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:andrew@bramp.freeserve.co.uk] Sent: 23 July 2001 02:38 To: drb Cc: php-general@lists.php.net 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" <farinspace@hotmail.com> To: <php-general@lists.php.net> 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: 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 > > -- 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 (#59239) next »