|
Posted by David on 09/08/05 22:08
I installed the Pear program and set the include path in php.ini to
point to the pear dir. I have a program which
<?
require_once("DB.php");
?>
This produces the error "Class 'PEAR_Error' not found in
c:\PHP\pear\PEAR\DB.php on line 868"
This is from defining an error class in the DB module that comes from
the PEAR.php module. Even though the DB.php has a require for the
PEAR.php, it appears that it is not being included .
I tried
<?
require_once("PEAR.php");
require_once("DB.php");
?>
but this does not appear to work wither.
I am lost if this is an issue with the Pear install, my system or PHP
setup, or just evil code!
I am running Win2k with Apache.
Also, when I do manually install PEAR.php, I sometimes get an runtime
error from Apache.
Navigation:
[Reply to this message]
|