htaccess and include_path

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I recently read a forum posting on regarding PEAR on a
shared host and the poster, mentioned 3 methods to assign an
include_path using htaccess.
( Only the 2nd I'm familiar with - so the 1st and 3rd could use some
explaining )

you can use .htaccess files to overwrite php's include_path for your

Or at the beginning of each script that uses pear you can ini_set() a
new include path that includes pear.

or combine the approach and use .htaccess to define an auto_prepend
which is a .php file that ini_sets() your pear path.

Re: htaccess and include_path

actually, I found a resource at this URL:

It appears that any php directive that is categorized as PHP_INI_PERDIR
 would be valid either in php.ini  or  .htaccess

Site Timeline