I would say that it depends.
So, if there is a rather large code base, and you would prefer that the code be loaded into memory every time there is a page request to a minimum, then I would only suggest including another php file when necessary.
However, if this script is always needed, then include it at the beginning of the script.
It really comes down to the situation and the requirements.
Hope this helps.
ralfe source share