Some feedback:
1) Functions rule. I usually make seperate files of tons of specialized functions, and just include that file when I want a php script to have access to that function set.
2) I havnt seen any ill effects from putting require/includes inside files that are require/include by other scripts. Just dont inadvertanlty require a file that is requiring that file and make a loop of destruction... hehe.
For example, I use a singular conf.inc file that has all sorts of global settings for an entire application suite (a website). I include this for every execution of any php under that website. Sometimes however, certain sections of the site have their own functions and things they commonly use. So I include that file as well for those particular phps. But I include it from the main conf.inc file with an 'if'.
example:
For apps that need a secondary function set... I put this on the top:
$ping_functions = true;
require_once('conf.inc');
For other apps that use a different function set, I would use like this:
$pong_functions = true;
require_once('conf.inc');
Or an app that needs all those functions:
$ping_functions = true;
$pong_functions = true;
require_once('conf.inc');
I keep the secondary functions in a secondar include file, because its easier on the resources of the server if you dont load EVERYTHING for every php execution. Instead I only load in things that are needed.
Inside the conf.inc it looked like this:
//bunch of configuration variable settings:
$conf['this'] = 'blah';
$conf['that'] = 'bleah';
//includes for specific function sets:
if ($ping_functions) include_once('ping_functions.inc');
if ($pong_functions) include_once('pong_functions.inc');
//then a bunch of common functions that must always exist...
Make sense?