Forum Moderators: phranque
I had severe problems to set up my PHP include path when it came to include from subdirectories. Got this solved so far by using the following line in my htaccess:
php_value include_path ".:/usr/local/lib/php:my_includes:../my_includes:../../my_includes:../../../my_includes:../../../../my_includes"
Like mentioned it works perfect but Iīm trying to find a way to avoid the ugly "../" constructs. Is there any way to use something like (document_root) instead and cut down on repetitions just to make it work from subdirectories?
Help on this is truely appreciated.. Nick
edit: Forgot to mention that this is on a shared server running Apache2x...
[edited by: Nick_oTeane at 8:08 am (utc) on May 13, 2009]
Sorry for not getting back on this - I was offline due to not having any electricity in our street for more than a day..
Couldnīt find any hint on this anywhere. But donīt worry, like said, it`s working perfect right now and I think itīs fine if I just leave it like it is. Thanks anyways
Nick