you could create a common include file for each directory, for e.g.
functions/auth.inc.php would contain:
include ("auth/auth1.php");
include ("auth/auth2.php");
...
later you could just include() the auth.inc.php file, and all the rest qould
get included as well
"andrew" <[EMAIL P
Sure. Use an array, as suggested in the example on the include manual page,
but put all files in a specific directory in that array. To do that, use
code like the following:
# load files into array
# assign $directory to your variable, or replace $directory in the below
line with the directory yo
Is there any way to include whole directories?
I have my function declarations in many small, easily maintainable
files, but it's a pain to include/require them all individually...I
would like to just split them into directories by common purpose, e.g
functions/auth
functions/content
function
3 matches
Mail list logo