What value to use for include_path in .htaccess
Posted
by bateman_ap
on Stack Overflow
See other posts from Stack Overflow
or by bateman_ap
Published on 2010-05-07T09:32:32Z
Indexed on
2010/05/07
9:38 UTC
Read the original article
Hit count: 204
Currently in my .htaccess file I am setting include_path
such as this:
php_value include_path /mnt/webs/mysite/includes:/usr/share/pear
However this isn't great if I need to put my sites on a new server as I need to go through a whole load of sites updating each .htaccess. Basically would like a way to basically say "use the folder called includes
in the site root (I run a variety of different sites off one server so each .htaccess file and include path will be different).
In a related question on here I had someone use:
inclue(dirname(__FILE__)."/inc2.php");
But this is in code and might be a bit annoying to do everytime, however should I just use this method and scrap the idea of using .htaccess?
© Stack Overflow or respective owner