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 ?
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 ?
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