How can I redirect in PHP without header errors?

前端 未结 7 2405
悲哀的现实
悲哀的现实 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:31

    Use ob_start() in the first line even befor the include. so you can set headers anytime.

    0 讨论(0)
提交回复
热议问题