Jump to content

PEAR and includes_path


eelyroc

Recommended Posts

I added PEAR classes to my codebase under Api/inc/classes/PEAR and modified my includes_path to include this directory.

 

but now, when I try to require_once a file in the PEAR directory eg:

 

      require_once 'inc/classes/PEAR/Benchmark/Timer.php';

 

I get the error:

 

Failed opening required 'PEAR.php' (include_path='.:/Applications/MAMP/bin/php5/lib/php;/Users/eelyroc/Code/workspace/Api/;/Users/eelyroc/Code/workspace/Api/inc/;/Users/eelyroc/Code/workspace/Api/inc/classes/;/Users/eelyroc/Code/workspace/Api/inc/classes/PEAR/;/Users/eelyroc/Code/workspace/Api/inc/classes/Zend/') in /Users/eelyroc/Code/workspace/Api/inc/classes/PEAR/Benchmark/Timer.php on line 322

 

(the file I am trying to include, Timer.php, has the line "require_once 'PEAR.php';")

 

Whats going on???

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/162298-pear-and-includes_path/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.