How can I redirect in PHP without header errors?

前端 未结 7 2411
悲哀的现实
悲哀的现实 2021-02-10 07:33

How can I redirect in PHP with this setup below without getting header output errors, I understand that nothing can be printed to the browser before a header is set, I am lookin

7条回答
  •  庸人自扰
    2021-02-10 08:23

    Does the footer.inc.php and SOME-FILE-HERE.php write to the response stream immediately? Because if so, this won't work as you will have already written something before you sent the headers.

提交回复
热议问题