maxudaskin Posted January 19, 2008 Share Posted January 19, 2008 How can I automatically redirect after header information is already sent? Quote Link to comment https://forums.phpfreaks.com/topic/86733-redirect/ Share on other sites More sharing options...
Ken2k7 Posted January 19, 2008 Share Posted January 19, 2008 Wow, you have bundles of questions today. Well I don't know what kind of headers, but if no HTML is displayed, you can use header() to redirect. Else, use JavaScript using: location.href = 'blah.com'; or use HTML meta tags, which you should know. Quote Link to comment https://forums.phpfreaks.com/topic/86733-redirect/#findComment-443239 Share on other sites More sharing options...
TheFilmGod Posted January 19, 2008 Share Posted January 19, 2008 output buffering, or setup the script so headers aren't sent before you do header ("location: 'http://yahoo.com' "); Quote Link to comment https://forums.phpfreaks.com/topic/86733-redirect/#findComment-443241 Share on other sites More sharing options...
maxudaskin Posted January 19, 2008 Author Share Posted January 19, 2008 Wow, you have bundles of questions today. Well I don't know what kind of headers, but if no HTML is displayed, you can use header() to redirect. Else, use JavaScript using: location.href = 'blah.com'; or use HTML meta tags, which you should know. I just got back to PHP after a somewhat lengthy leave... Quote Link to comment https://forums.phpfreaks.com/topic/86733-redirect/#findComment-443244 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.