PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
It just needs to come before any output so the first line of the script makes it a logical choice.
I usually have it after all the defines, requires etc.
markl999 wrote:It just needs to come before any output so the first line of the script makes it a logical choice.
I usually have it after all the defines, requires etc.
If I am building a larger system I tend to put it in a site-wide include, up at the top. The earlier the better, because invariably there will be some file that has a blank line at the buttom that constitutes "output" haha especially if multiple people are working on the project.