Does PHP take a while to parse functions? I have a library file that contains all the functions my site needs and it's include()ed on every page, but not every page uses every function in the library. Is this overly inefficient?
i wouldn't worry about it, but, if you use "include" instead of "require", you can include the file conditionally, if you're really concerned..
like, if($needIncludeFile){ include 'lib/include.phps'; }
...all my pages need some of the functions, but not all that in the library file.
I have a similar setup, with a few large .lib files that I include on every page (2 or 3 each page) that are about 200 lines each. PHP is very, very fast and it would not cost performance unless it is a large file and a hard drive with really bad access time.
-Chris
Okay, thanks. My lib file is about 600 lines so that fits within your range. Hopefully my hoster hasn't shortchanged me =] Thanks a bunch for the help.