matty84 Posted November 25, 2006 Share Posted November 25, 2006 Hi I know you can autoredirect using php with a header function of some description but what about if you want to auto redirerct after running code? Is this possible? Basically I am using php to generate an XML file, then, when this file is made, I want the page to automatically redirect to this new file,cheers!Matt Quote Link to comment https://forums.phpfreaks.com/topic/28447-php-redirect/ Share on other sites More sharing options...
onlyican Posted November 25, 2006 Share Posted November 25, 2006 either put the header tags BEFORE HTM code is calledOR Use JavascriptORadd ob_start before at the top of the page, and then you can call header anywhere Quote Link to comment https://forums.phpfreaks.com/topic/28447-php-redirect/#findComment-130174 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.