|
Posted by bobmct on 07/27/06 10:53
I'm attempting to integrate some PayPalPro supplied modules which come with
their own directory structure. I've installed this "directory" into my
common "working" includes directory.
However, because the supplied code uses so many levels of includes PHP is
not finding the referenced included functions.
Heres an example:
my own working includes:
/cgi-bin/includes
and I've installed the PayPalPro supplied stuff into that directory which
then constructs:
/cgi-bin/includes/PayPal/
/cgi-bin/includes/PayPal/Stuff/
/cgi-bin/includes/PayPal/Stuff/more_stuff/
/cgi-bin/includes/PayPal/Stuff/more_stuff/etc/
and so on.
When I use "include_once("module_name.php"); in my program the compiler
FINDS the module but the module itself then includes more items from
further on down the tree.
I've added the recursed directories to my php.ini include_paths directive
but is this really necessary?
Does one have to include each and every directory explicitly or is there a
method to define "recurse from this directory down" somewhere? I've
searched the docs (books, bibles, groups, php.net, etc) and cannot seem to
come up with any other way.
Please tell me I'm crazy and that there is a more reasonable way to
accomplish this?
Advice, help appreciated!
Bob
Navigation:
[Reply to this message]
|