Click to See Complete Forum and Search --> : include_path not recursive?


cloudmaster
09-04-2002, 04:52 PM
I installed apache2 and php 4.2.3RC2 today, and am having some problems getting the pear modules to work.

Since the pear stuff wasn't in the distribution (doh), I checked out the "pear" module from cvs.php.net. Now I have a "pear" directory in my php install dir, and it's got a bunch of modules inside.

I set my include path to include_path = ".;C:\Program Files\Apache Group\php4-Win32\pear", then (it shows up properly in the error messages and in php_info()). I'm still getting the Failed opening required 'DB.php' error when I try to require_once DB.php. The file exists, and is one level below the include_path dir (in the DB dir). Is that not right? Do I need to list all of the directoirs in "pear" in the include_path statement? Do I need to copy all of the contents to a single dir? What gives?

Is there a better/easier way to get the full pear onto my win2K install?

Thanks.

cloudmaster
09-04-2002, 06:06 PM
OK, so there's more to it than just checking the stuff out of CVS - some kind of installer has to be run. That's not working out for me either. I've managed to get the darned go-pear thing to download and run (no simple task, given the poor instructions available) - but it doesn't display anything. It runs and sintalls some stuff, but gets paths all wrong and doesn't allow me to run it any further. pear.in appears to be missing. Anyway, it got the DB.php file and the PEAR.php files installed, and that's all I need for now. Maybe one day later I'll worry about why this stuff just won't work on my development webserver.

It's all dandy on the linux boxes - if I just had a spare linux box now...

vandepavert
03-04-2003, 07:01 AM
...set my include path to include_path = ".;C:\Program Files\Apache Group\php4-Win32\pear"...

I have read in one of the many online tutorials that installing PEAR in a Windows path that contains spaces (like c:\program files)will fail.

To install PEAR in Windows it is advised to use a path which does not contains spaces (like c:\php\pear)

León