[thelist] personal PHP preference inquiry

Antonio Angelo antonio.angelo at gmail.com
Tue Apr 26 13:00:35 CDT 2005


2005/4/24, Rick den Haan <rick.denhaan at gmail.com>:
> I was wondering how all you PHP programmers out there work with custom
> functions. Do you like to:
> 
> a) put all necessary functions in the page itself;
> b) put all functions in one seperate file, and include this big file
> into the page;
> c) put each function in its own file, and include when needed;
> d) else?

Rick,

I wrote very little code in PHP but usually I have two 'library'
files: one with all global subroutines (the big one), and another with
subroutines specific to the application.
Both files are then included in my pages.

Antonio


More information about the thelist mailing list