[gollem] Re: sql backend using $conf['sql']

Jan Schneider jan at horde.org
Thu Feb 17 04:12:30 PST 2005


Zitat von Markos Giannopoulos <markg at apogee.gr>:

> i used the sql example in backends.php replacing the parameters
>
>    'params' => array(
>        // The SQL connection parameters. See horde/config/conf.php for
>        // descriptions of each parameter.
>        'phptype' => 'mysql',
>        'hostspec' => 'localhost',
>        'database' => 'horde',
>        'username' => 'horde',
>        'password' => 'horde',
>
>        // The SQL table containing the VFS. See the horde/scripts/db
>        // directory for examples.
>        'table' => 'horde_vfs'
>
> with this
>
> 'params' => array_merge($conf['sql'], array('table' => 'horde_vfs')),
>
> But i get this error
>
> Undefined variable: conf

Try
'params' => array_merge($GLOBALS['conf']['sql'], array('table' => 
'horde_vfs')),
instead.

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/


More information about the gollem mailing list