JTey Posted June 14, 2004 Posted June 14, 2004 I want to know if I can configure an include_path, so that I can store some php includes in there (for my shared function libraries) -- I want the functionality of "include_path" in the php.ini I'm guessing this can't be done since it's a shared server? Please advise Quote
TCH-Don Posted June 14, 2004 Posted June 14, 2004 I think you can add php_value include_path '/path/to/includes' to your .htaccess file to achieve this. Quote
TCH-Don Posted June 14, 2004 Posted June 14, 2004 I just tried with a phpinclude folder created in the home folder above public_html php_value include_path '/home/cpanelname/phpinc/' and it works, but you will have to add paths to the includes if they are not in the include folder of course. And you can put the include folder anywhere in the public_html folder too just change to php_value include_path '/home/cpanelname/public_html/phpinc/' Quote
JTey Posted June 14, 2004 Author Posted June 14, 2004 Thanks for the tip Don, I'll give it a try Quote
TCH-Don Posted June 14, 2004 Posted June 14, 2004 You are welcome, I learned something new from this. So that my learn something new everyday for today Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.