Jump to content

Require and header on the same page?


Recommended Posts

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?

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.