include problem

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

Threaded View
Hi there,
Get the following errors when trying to include PEAR DB framework using  
PHP 5.0.4 on Windows 2000 with Apache 2.

Warning: main(PEAR-1.3.3/DB/DB.php) [function.main]: failed to open  
stream: No such file or directory in E:\Program Files\Apache  
Group\Apache2\htdocs\servus\includes\include.php on line 19

Fatal error: main() [function.require]: Failed opening required  
'PEAR-1.3.3/DB/DB.php' (include_path='.\includes;.') in E:\Program  
Files\Apache Group\Apache2\htdocs\servus\includes\include.php on line 19

The include_path config variable looks like this:
include_path = ".\includes;.\"

PHP is installed in
and the PEAR Class defs are in

The includes that fail are:

These worked with 4.4.0, but fail with 5.0.4 ...

can anybody tell me what's going wrong here please? I can't see the wood  
for the trees! :)


Alan Stone

Re: include problem

bigal wrote:

Quoted text here. Click to load it
Quoted text here. Click to load it

So e:\php-5.0.4 is not on the include path and you want to include files it
contains. Need I say more?


Site Timeline