Re: Dynamic include path setting?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux