Re: Re: intalling pear:db

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxx 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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux