sniperscope Posted April 20, 2009 Share Posted April 20, 2009 Hi gurus, I have a very simple newbie question. Does php keep executing code after header('location: somewhere.html'); ? Link to comment https://forums.phpfreaks.com/topic/154828-solved-newbie-question/ Share on other sites More sharing options...
PFMaBiSmAd Posted April 20, 2009 Share Posted April 20, 2009 Yes. A header() statement outputs a header to the browser. It is the browser that requests the new URL. The php code on the page continues until it reaches the end of the code on the page or until you execute an exit/die statement. Link to comment https://forums.phpfreaks.com/topic/154828-solved-newbie-question/#findComment-814286 Share on other sites More sharing options...
sniperscope Posted April 20, 2009 Author Share Posted April 20, 2009 Thank you very much for information. Great appreciate. Link to comment https://forums.phpfreaks.com/topic/154828-solved-newbie-question/#findComment-814338 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.