require_once issue

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I have code that brings in the Pear DB

require_once 'DB.php';  

However, there is an include in the DB.php for the PEAR.php file, and
the system does not appear to be able to locate that file.  The
PHP.ini has

include_path = ".;c:\php\includes;c:\php\includes\Pear"

PHP appears to use this dir. search path  for the DB.php but not the
internal Pear.php!

I can force the include but changing it to a full path, but this is
not the best option.

Any ideas as to the root cause of this issue?

Re: require_once issue

Quoted text here. Click to load it

 What error do you get?

 Are you sure it's picking up DB.php from c:\php\includes\Pear and not another

Andy Hassall :: :: :: disk and FTP usage analysis tool

Site Timeline