Reputation: 111
I have been using set_include_path typically in the starting point of my applications to add the base directory of my packages for some time now.
Is this the way this should typically be used?
And how would you use it if you were integrating a new package into an existing system?
Upvotes: 0
Views: 295
Reputation: 4037
set_include_path(get_include_path() . PATH_SEPARATOR . $path_you_want_to_add);
Upvotes: 7