eelyroc Posted June 15, 2009 Share Posted June 15, 2009 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.