Hey, this is what I use, if its not what your looking for please disregard.
This has to be added to my index file, as I use an MVC with front controller for all my development it only occurs once per site...
addIncludePath(
array(
dirname(__FILE__).'/../../bah',
dirname(__FILE__).'/../../meh',
dirname(__FILE__).'/../../humpf'
)
);
/**
* Used to add any needed paths to the systems include.
* @param array $paths Contains a collection of paths which need adding to the include path.
* @return void
*/
function addIncludePath($paths)
{
if (!is_array($paths))
return false;
foreach ($paths as $path)
if (!is_dir($path))
throw new Exception("The following include path could not be found '$path'.");
$inc = explode(PATH_SEPARATOR, ini_get('include_path'));
$inc = array_merge($inc, $paths);
$inc = implode(PATH_SEPARATOR, $inc);
ini_set('include_path', $inc);
}