Re: Global and Local include_path settings
| From: | Jason Wong | Date: | Sat, 05 Feb 2005 23:42:05 +0000 |
| Subject: | Re: Global and Local include_path settings | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-208134@lists.php.net to get a copy of this message | ||
On Sunday 06 February 2005 07:27, John Nichel wrote:
> 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.
One method (not sure whether it's the best or most efficient) is to use an
auto_prepend_file to set the local component(s) of the path.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
New Year Resolution: Ignore top posted posts