Re: Dynamic include path setting?

From: Date: Sun, 18 Nov 2007 23:27:13 +0000
Subject: Re: Dynamic include path setting?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-264761@lists.php.net to get a copy of this message
Hayden Livingston wrote:
Hello, I was wondering if this is possible? It seems in the apache mailing list, that it is not possible per se, but any workaround thoughts?
If they say it's not possible I don't think you're going to get a different answer here.
<LocationMatch "^/(.*)track"> php_value include_path .:/libraries/$1/php/lib SetEnv PERL5LIB /libaries/$1/perl/lib </LocationMatch>
in your init.php or common.php or whatever: // include the existing 'include_path' and then add this folder on to the end. ini_set('include_path', ini_get('include_path') . ':/path/to/your/base/folder'); To get your current dir: $my_directory = dirname(__FILE__); and adjust that. -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.general (#264761) next »