views:

18

answers:

1

I would like to add my_path to include_path and include files relatively to my_path.

Is that enough to set the include_path using set_include_path in the main PHP file of my website, or I must do this in every PHP file ?

+1  A: 

You don't have to repeat it for each included file. An alternative approach would be using .htaccess files:

php_value include_path new_path:/old/paths/here
Lekensteyn