Problems with Pear and php5
Posted by: thejoker101
Posted on: 2005-09-11 19:55:00
I'm going to be doing some programming that requires php5, that's fine, dreamhost offers it. However, when I try to use this additional pear package, it won't work when php5 is enabled on my account. I tried it on another domain I have hosted here that uses php4 and it does fine. Perhaps it's not possible or perhaps there is another way to do it, I'm not sure.
Here is the code:
ini_set('include_path', ini_get('include_path').':/home/dionysus/17thdegree.com/pear_packages/DB-1.7.6/');
require_once("DB.php");
The error when php5 is enabled:
Warning: main(PEAR.php) [function.main]: failed to open stream: No such file or directory in /home/.taffi/dionysus/17thdegree.com/pear_packages/DB-1.7.6/DB.php on line 30
Fatal error: main() [function.require]: Failed opening required 'PEAR.php' (include_path='.:/usr/local/php5/lib:/home/dionysus/17thdegree.com/pear_packages/DB-1.7.6/') in /home/.taffi/dionysus/17thdegree.com/pear_packages/DB-1.7.6/DB.php on line 30