Re: Re: intalling pear:db
| From: | Info@Best-IT | Date: | Sat, 04 Dec 2004 22:25:37 +0000 |
| Subject: | Re: Re: intalling pear:db | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-203497@lists.php.net to get a copy of this message | ||
Ryan,
Your suggestion led me to the solution. I was having the same problem with
php returning a fatal error made me think DB.php was to blame. But it ended
up being an include problem after all...
I use php 4.3.8 and my include path to the PEAR libraries was already set.
The actual problem was including my config file which defined my DSN driver.
Once I was able to successfully include the config file and actually define
the DSN info, everything was fine.
Thanks!
Tim
on 11/26/04 1:18, Ryan King at ryansking@mac.com wrote:
>
> On Nov 25, 2004, at 1:56 AM, Merlin wrote:
>>
>> Hi,
>>
>> that did not help. The pear manual says that this can be installed via
>> command line, plus "pear list" tells me that the package is installed.
>> However if I call phpinfo() there is no mentioning about pear in any
>> way?! Do I have to enable it first anyhow?`
>>
>
> How about trying a var_dump() on your DB object? For me, this is always
> the first step in trying to solve a mystery like this. Chances are,
> your DB object is really a PEAR_Error object because your failed to
> connect to your database.
>
> -ryan