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'); ? Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment 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.