Re: [PHP] Dynamic include path setting?

2007-11-18 Thread Chris

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/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Dynamic include path setting?

2007-11-17 Thread Hayden Livingston
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?

LocationMatch ^/(.*)track
   php_value include_path .:/libraries/$1/php/lib
   SetEnv PERL5LIB /libaries/$1/perl/lib
 /LocationMatch

Thanks,
HL

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php