jakebur01 Posted February 20, 2009 Share Posted February 20, 2009 Is there any way to do a safe header redirect at the end of code? I was reading on php.net where it cannot be below any html tags. Quote Link to comment https://forums.phpfreaks.com/topic/146062-redirect/ Share on other sites More sharing options...
MasterACE14 Posted February 20, 2009 Share Posted February 20, 2009 nope it can't <?php header("Location: somepage.php"); ?> Quote Link to comment https://forums.phpfreaks.com/topic/146062-redirect/#findComment-766772 Share on other sites More sharing options...
jakebur01 Posted February 20, 2009 Author Share Posted February 20, 2009 Is there any other way to redirect at the end of a page using php? Quote Link to comment https://forums.phpfreaks.com/topic/146062-redirect/#findComment-766783 Share on other sites More sharing options...
Q695 Posted February 20, 2009 Share Posted February 20, 2009 header needs to be before any outputted data, so make sure there is also no BOM on the page being loaded. Quote Link to comment https://forums.phpfreaks.com/topic/146062-redirect/#findComment-766804 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.