PDA

View Full Version : Using ob_start() and ob_flush() in PHP


qazs
10-02-2005, 11:49 AM
Hi,
I wonder is it a good practice to put ob_start() at the top of your script and
ob_flush() at the end?
Thanks for any advice.

JamieR
10-02-2005, 12:19 PM
This is a php question and should be moved to the php forum :)

qazs
10-02-2005, 01:59 PM
ok sorry...

gsnedders
10-02-2005, 02:58 PM
The question is, do you want your data only to be begun being received by the browser when the PHP has finished executing? If your sending anything as XML, it makes no difference, as the browser will wait for all the data before attempting to rendering it.