I have ended up with a script over 3500 lines. Everything is broken up into functions, so only the code that is needed is parsed every time the page is accessed. My question is whether or not it would be more efficient to break the script into separate files to include appropriately, or if having a large file containing all the functions is fine?
I have received a comment about the pages loading slowly - I have yet to determine if it's the script execution, or if it's the bandwidth, but I thought I'd ask.