While splitting apart a website into discreet applications, I moved all the shared code to its own folder. While that isn’t a hard thing to do, what does one do in a development environment where the shared files might be undergoing changes that you don’t want other environments to see?
Set a custom include path!
In each of my Virtual Host sections, I added the following line:
php_value include_path '/path/to/my/include'
With a restart of Apache, each environment now looks to its own custom include folder.
Cant get this to work. Is there any additional config needed?
That was a typo on my part. Instead of using the double-quotes, you either need to use single quotes or no quotes at all. I tested this one Apache 2.2.4 on Ubuntu 7.10 Server and Apache 1.3.29 on OpenBSD 4.1-stable.