有没有办法在不使用header()的情况下重定向到php中的另一个页面? 我不能使用header()因为我首先输出一些东西到页面。 我考虑过使用Javascript的window.location,但是我在php中使用if语句,所以有没有办法在php中转到另一个页面而不使用header()? 提前致谢。 p> div>
Is there a way to redirect to another page in php without using header()? I can't use header() because I am outputting some stuff first to the page. I've considered using Javascript's window.location but I'm using an if statement in php so is there any way in php to go to another page without using header()? Thanks in advance.