Forum Moderators: coopster

Message Too Old, No Replies

'include path' Problem

Files located in the 'include_path' folder can't be included?

         

Sekka

8:47 pm on May 9, 2007 (gmt 0)

10+ Year Member



Hi,

I have started to look into OOP and I have just installed PEAR to play with it. The installation went fine (from what I can tell as I can run PEAR commands in the console).

PEAR is installed in '/usr/share/pear' and my php.ini 'include_path' is set to the pear directory.

Now, when I actually try and use a PEAR package, e.g. Benchmark, I get this error,

Warning: require(Benchmark/Iterate.php) [function.require]: failed to open stream: No such file or directory in <domain httpdocs path>/rar1.php on line 6

Fatal error: require() [function.require]: Failed opening required 'Benchmark/Iterate.php' (include_path='.:/usr/share/pear') in <domain httpdocs path>/rar1.php on line 6

'<domain httpdocs path>' is the file path to my http docs.

I checked the PEAR directory and the Benchmark files are there and installed properly.

So, how come I can't include the files?

eelixduppy

2:45 pm on May 11, 2007 (gmt 0)



>> So, how come I can't include the files?

You cannot include the files correctly because you aren't using the correct path. It seems that the include path is interferring with the file include. Try a full path to the file to see if that helps.