htaccess and include_path

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • webguynow

    htaccess and include_path

    I recently read a forum posting on codewalkers.com 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
    site.


    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.

  • webguynow

    #2
    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

    Comment

    Working...