Chaining PHP include paths

lomn75

Purple Ace
Joined
Jun 26, 2000
Messages
6,613
I'm attempting to integrate an existing software package with a custom deal of my own. Each has a series of include directives, and they're currently incompatible.

The base package needs to include /inc1, /inc2, and /addon/includes
The addon package needs to include its own ./inc3 and ./inc4

The necessary includes, then, are:
/inc1
/inc2
/addon/inc3
/addon/inc4

Of course, just throwing in include(/addon/includes) results in a list of
/inc1
/inc2
/inc3
/inc4

Is there some setting/whatever that can fix this without me rewriting the include code in /addon itself? I'd prefer to modify as little code as possible.
 
Back
Top