I have a website which is a few years old now, it basically offers downloads.
Anyway since moving server people can not download files because its now giving a error
As far as I can understand from the code flush()
is not needed. Also instead of using
ob_clean();
flush();
just use ob_end_clean()
to clear any buffered code.
And you said you were moving servers and now it is not working, does it means you have modified PHP settings or version too?
If yes than do post the PHP configuration for output_buffering
.