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 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 Link to comment https://forums.phpfreaks.com/topic/28447-php-redirect/#findComment-130174 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.