Global and Local include_path settings

From: Date: Sat, 05 Feb 2005 23:27:30 +0000
Subject: Global and Local include_path settings
Groups: php.general 
Request: Send a blank email to php-general+get-208133@lists.php.net to get a copy of this message
Hey, I'm running a box which hosts quite a few virtual hosts, and I want to configure it to where all vhosts have access to a global include directory (for things like PEAR and Smarty), as well as access to a local include directory for each virtual host. My current config has me setting paths like this inside of each vhost directive in Apache.... php_value include_path ".:/path/to/global:/path/to/local" What I'm wondering is if anyone knows of a way to set the global path in one location, and 'append' the local path in the vhosts directive. Kind of like on a *nix system where I can set a global path once... PATH=/usr/bin And append to that somewhere else on the system.... PATH=$PATH:/usr/local/bin I've tried setting the global path in the php.ini, and the local path in both the httpd.conf and .htaccess file, but both of those overwrite the global path, and since PHP values do not exist outside of php, I can't set it like above. Not really a problem if there isn't a way to do it dynamically...it would just be nice to 'centralize' my global include. TIA -- By-Tor.com ...it's all about the Rush http://www.by-tor.com

« previous php.general (#208133) next »