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? Commented 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. Commented Sep 18, 2010 at 20:02

1 Answer 1

7
set_include_path(get_include_path() . PATH_SEPARATOR . $path_you_want_to_add);
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.