0

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?

2
  • Your current use sounds pretty typical to me. What, exactly, do you mean by "integrate a new package into an existing system", though?
    – Tim Yates
    Sep 18, 2010 at 19:59
  • I am working with an existing ecommerce site which i cant fully integrate my code into - its kind of seperate but works with it. I want to keep my code pretty organised and so wondered if using the set_include_path would work the same way.
    – David
    Sep 18, 2010 at 20:02

1 Answer 1

7
set_include_path(get_include_path() . PATH_SEPARATOR . $path_you_want_to_add);
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.