Jump to content

Problem using htaccess to set PHP_value


doni49

Recommended Posts

I'm using a web host for my web site.  I am able to use .htaccess files.  I need to add two folders to the include_path statement for my web site.

Every time I use the PHP_value directive in my .htaccess file, I get an internal server error when I try to load my web page.  If I take the line OUT of the .htaccess file, there's NO error when loading the web page.

Before making any changes, [I]phpinfo()[/I] tells me this is the value of the include_path variable:
[quote] .:/usr/lib/php:/usr/local/lib/php[/quote]

The following is the line I'm putting in my .htaccess file:
[QUOTE]
php_value include_path ".:/usr/lib/php:/usr/local/lib/php"[/QUOTE]

I'm trying to get it working--then add my two folders to the path.

Does anyone have any ideas?

THANKS!

EDIT: I FINALLY got a response from my web host. They tell me that the php_value directive is disabled. Can anyone think of any alternatives that I can use?

One folder is outside of the public area (under the root). This folder includes some php files that I can NOT allow anyone to access. I want to include these files without having to hard code the path everytime I include them. That's one folder. I also have one other folder that is in the public area. Again I don't want to have to type the path everytime.

Thanks.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.