Re: appending to include_path
| From: | darcy w. christ | Date: | Wed, 27 Feb 2002 18:30:48 +0000 |
| Subject: | Re: appending to include_path | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-86446@lists.php.net to get a copy of this message | ||
Hi Jason,
i think you misunderstood what i was asking. i am doing exactly what
you described below. My question is whether there is a way to not
overwrite the include_path variable, but instead to append certain paths
within my virtual server's setup to the master include_path that is
setup in my php.ini file.
Jason Wong wrote:
>
> On Thursday 28 February 2002 01:50, darcy w. christ wrote:
> > hi,
> >
> > i'm hoping to find a way to append to the include_path set in my
> > php.ini file. i've got several virtual servers that each require
> > different include_paths which are defined using the php_admin_value line
> > in my apache conf file. Since the documentation says that include_path
> > is like the UNIX PATH variable, i assumed (or maybe hoped) that i would
> > be able to use a syntax like this:
> >
> > php_admin_value include_path "$include_path:/some/other/path"
> >
> > unfortunately, it doesn't work. Is there a way to append to the path?
>
> One way to allow each virtual server to have their own php config is to set
> the values from within httpd.conf:
>
> <VirtualHost 123.123.123.123>
> ServerAdmin webmaster@domain.com
> DocumentRoot /home/www/www.domain.com
> ServerName www.domain.com
>
> <Directory "/home/www/www.domain.com">
> Allow from All
> php_value include_path .:/home/www/www.domain.com
> </Directory>
> </VirtualHost>
--
~darcy w. christ
Elegant Communications Inc.
416.362.9772 x222 | 416.362.8324 fax