Re: [DB] problem while doing require_once'DB.php' ;
| From: | PHPcoder | Date: | Thu, 11 Sep 2003 09:03:14 +0000 |
| Subject: | Re: [DB] problem while doing require_once'DB.php' ; | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-7716@lists.php.net to get a copy of this message | ||
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