I think you should reconsider the new line. It totally crashes PHP redirects. PHP looks the new line as text. So when you try to send new header, it has already been sent because of the tiny \n.
I think you should reconsider the new line. It totally crashes PHP redirects. PHP looks the new line as text. So when you try to send new header, it has already been sent because of the tiny \n.