Msg#: 3499978 posted 8:02 pm on Nov 8, 2007 (gmt 0)
Well it all depends. Serving one file is always faster and in this case, it works fine for you. However, if you where to have a folder of function files, it would reduce performance by loading all of them instead of loading the ones you need when you need them. What you've got to remember is that the impact may just be milliseconds and you may not even notice!
Msg#: 3499978 posted 8:47 pm on Nov 8, 2007 (gmt 0)
All I would add to that is, if you know that you will always need both files, then they are better off as one file. the size of the file isnt relevant, because the two files would take up just as much memory as if they were just one file.
Msg#: 3499978 posted 8:49 pm on Nov 8, 2007 (gmt 0)
Could you use the auto_append_file [php.net] and auto_prepend_file, so that you dont need to worry about adding the code to each page manually?
This auto version treats the code as if it is required, so will produce fatal errors. It will also call each file individually, however if this is a question about time taken to manually code then this may be a solution. However some servers dont allow you to specify php directives in the htaccess file...so this may not work for you anyway, but could be worth a try.
[edited by: PHP_Chimp at 8:50 pm (utc) on Nov. 8, 2007]