malformed header from script. Bad header=1: index.php

后端 未结 4 983
醉梦人生
醉梦人生 2021-01-18 20:22

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

4条回答
  •  滥情空心
    2021-01-18 21:05

    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.

提交回复
热议问题