I'm wondering if there is a way to dynamically set the absolute path of
an include directory based on the document root of the site via htaccess
or some other method other than in the scripts themselves within the site.
Example of what I'm looking for:
php_value include_path "$_SERVER['DOCUMENT_ROOT']/include"
I have a live site and a development site both hosted on 2 entirely
different systems. The issue stems because the path to the code base for
each site is not the same. The problem I'm trying to solve is to not
have to modify the include path settings when pushing revisions from the
development system to upstream, in other words, I'd like for the code
base to be a drop in replacement which is why I'm defining php settings
via htaccess rather than php.ini to begin with.
I'm not setting include paths in scripts because the vast majority of
the classes in the include directory depend on other classes and include
said classes directly in their code. This breaks scripts deep in the
directory tree without using an absolute path. I suppose one option
(that I'm trying to avoid) is to modify the scripts to use:
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php