Re: appending to include_path

From: Date: Wed, 27 Feb 2002 18:25:08 +0000
Subject: Re: appending to include_path
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-86443@lists.php.net to get a copy of this message
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> -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk /* Lubarsky's Law of Cybernetic Entomology: There's always one more bug. */

« previous php.general (#86443) next »