[dev] Horde logging.
Jon Parise
jon@horde.org
Fri, 28 Sep 2001 14:30:53 -0400
On Fri, Sep 28, 2001 at 02:28:09PM -0400, Frederic Trudeau wrote:
> Warning: Undefined index: dsn in /usr/local/lib/php/Log/sql.php on line 55
> Fatal error: Call to undefined function: query()
> in /usr/local/lib/php/Log/sql.php on line 114
[snip]
> // Any additonal configuration information, like an MCAL or database
> // username and password.
> $conf['log']['params'] = array();
> $conf['log']['params']['phptype'] = 'mysql';
> $conf['log']['params']['hostspec'] = 'localhost';
> $conf['log']['params']['username'] = 'hordemgr';
> $conf['log']['params']['password'] = 'xxxxxxx';
> $conf['log']['params']['database'] = 'horde';
> //$conf['log']['params']['table'] = 'log_table';
Instead of defining the database parameters individual, you'll
need to define a single DSN, i.e.:
$conf['log']['params']['dns'] = 'mysql:// ...';
--
Jon Parise (jon@csh.rit.edu) . Information Technology (B.S.)
http://www.csh.rit.edu/~jon/ : Computer Science House Member