Less flexible, your .htaccess
Code:
phpvalue include_path '/path/to/pear:/other/stuff'
More flexible, .htaccess
Code:
phpvalue auto_prepend_filed '/path/to/initfile.php'
initfile.php
PHP Code:
ini_set('include_path', '/path/to/pear:/other/stuff');
The point is that you need to use : to separate the paths. Actually, on windows it's ;
So, to make it easy, you should use the php constant PATH_SEPARATOR
After a while, your file could look like:
PHP Code:
// define some FRAMEWORK constants
define('FRAMEWORK_ROOT', realpath(dirname(__FILE__)));
define('FRAMEWORK_WEB', realpath(FRAMEWORK_ROOT . '/pubwww'));
define('FRAMEWORK_EXT', realpath(FRAMEWORK_ROOT . '/ext'));
define('FRAMEWORK_MODELS', realpath(FRAMEWORK_ROOT . '/models'));
define('FRAMEWORK_VIEWS', realpath(FRAMEWORK_WEB . '/views'));
$include_paths = array('.', '..', FRAMEWORK_ROOT, FRAMEWORK_WEB, FRAMEWORK_EXT, FRAMEWORK_MODELS, FRAMEWORK_VIEWS, get_include_path());
ini_set('include_path', implode(PATH_SEPARATOR, $include_paths));
Bookmarks