melting_dog Posted August 16, 2010 Share Posted August 16, 2010 Hi, I want to have a require() and a header() on the same page. This is just impossible right? Quote Link to comment https://forums.phpfreaks.com/topic/210816-require-and-header-on-the-same-page/ Share on other sites More sharing options...
PFMaBiSmAd Posted August 16, 2010 Share Posted August 16, 2010 Those two functions can be used any place you want. The only restriction is that you cannot output any characters to the browser before you use a header() statement, so, if your require() results in some code that sends output, you must prevent the output or rearrange your code so that any header() statements come before the output. Do you have a specific problem or error that you need help with? Quote Link to comment https://forums.phpfreaks.com/topic/210816-require-and-header-on-the-same-page/#findComment-1099689 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.