I can set the PHP include path in the php.ini
:
include_path = /path/to/site/includes/
But then other websites are affected so
If you're using apache as a webserver you can override (if you allow it) settings using .htaccess files. See the PHP manual for details.
Basically you put a file called .htaccess in your website root, which contains some PHP ini
values. Provided you configured Apache to allow overrides, this site will use all values in your PHP config, + the values you specify in the .htaccess file.
Can be used only with
PHP_INI_ALL
andPHP_INI_PERDIR
type directives
as stated in the page I linked. If you click through to the full listing, you see that the include path is a PHP_INI_ALL
directive.