Hello,
Many of my scripts use include() or require_once() to include functions common to the application. In the past I have used include() or require() etc. for just those functions that particular script may need. I have many function files, some of which may have just one function, others may have many functions.
Getting to the point here! I have started to wonder if it might be just as well to have one file with all functions for a particular application and include it in every script?
Thoughts?
How do you do this?
Is it better to keep scripts lean or is this really a concern?
How much is too much when it comes to PHP script size/lines of code?
Kevin
🆒