Re: [DB] problem while doing require_once'DB.php' ;

From: Date: Thu, 11 Sep 2003 09:10:27 +0000
Subject: Re: [DB] problem while doing require_once'DB.php' ;
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-7717@lists.php.net to get a copy of this message
Another possibility is to modify the DB.php file : if I change require_once 'PEAR.php'; to require_once 'pathto\PEAR.php'; it's OKay But it's not really clean, so I really would like to get the reason why whereas my php.ini seems to be good I have to change the path. Thanks "Phpcoder" <spambox@wanadoo.fr> a écrit dans le message de news: 20030911090339.93194.qmail@pb1.pair.com... > I found the solution : > i need to write this before my script : > ini_set('include_path',"D:\server\php\pear"); > > Why ? > I don't know because in my php.ini i already have the include path : > include_path = ".;D:\server\php\pear" > > If someone has any Idea to help me (i don't want to write the ini_set > because i should not need it) > > > > "Phpcoder" <spambox@wanadoo.fr> a écrit dans le message de news: > 20030910211429.83487.qmail@pb1.pair.com... > > Hi, > > > > I don't know why because I have always used DB but today i got a problem : > > If i write this script : > > <?PHP > > require_once 'DB.php' ; > > ?> > > > > I get this message : (Apache is configured to show all error even Notice) > > > > Fatal error: Class db_error: Cannot inherit from undefined class > pear_error > > in d:\server\php\PEAR\DB.php on line 622 > > > > > > what must i do to correct the error ? > > > > > > Thx

« previous php.pear.general (#7717) next »