[gollem] Multiple hordeftp listsings possible?
Jan Schneider
jan at horde.org
Wed Jul 21 01:21:06 PDT 2004
PLEASE keep this on the list.
Zitat von "Michael J. Pelletier" <mjpelletier at mjpelletier.com>:
> Maybe I stated this wrong. I guess what I was trying to say is I can not get
> multiple backends of the same type to play well with each other. For example:
>
> $backends['ftp'] = array(
> 'name' => 'Music Share',
> 'driver' => 'ftp',
> 'preferred' => '',
> 'hordeauth' => true,
> 'params' => array(
> // The hostname/IP Address of the FTP server
> 'hostspec' => 'localhost',
> // The port number of the FTP server
> 'port' => 21,
> // Use passive mode?
> 'pasv' => false,
> // VFS Root
> 'vfsroot' => '/usr/home/Shared\ Directories/Music'
> ),
> 'root' => '/usr/home/Shared\ Directories/Music',
> 'home' => '/usr/home/Shared\ Directories/Music',
> 'attributes' => array('type', 'name', 'download', 'modified', 'size',
> 'permission', 'owner', 'group')
> );
>
>
> $backends['ftp'] = array(
> 'name' => 'Movies Share',
> 'driver' => 'ftp',
> 'preferred' => '',
> 'hordeauth' => true,
> 'params' => array(
> // The hostname/IP Address of the FTP server
> 'hostspec' => 'localhost',
> // The port number of the FTP server
> 'port' => 21,
> // Use passive mode?
> 'pasv' => false,
> // VFS Root
> 'vfsroot' => '/usr/home/Shared\ Directories/Movies'
> ),
> 'root' => '/usr/home/Shared\ Directories/Movies',
> 'home' => '/usr/home/Shared\ Directories/Movies',
> 'attributes' => array('type', 'name', 'download', 'modified', 'size',
> 'permission', 'owner', 'group')
> );
>
> Will not work unless I comment out one of them. What am I doing wrong?
Exactly what I said: You gave both entries the same name/id/key ('ftp'), so
you overwrite the former with the latter.
> Michael,
>
> ----- Message from jan at horde.org --------- Date: Tue, 20 Jul 2004 10:09:15
> +0200 From: Jan Schneider <jan at horde.org>Reply-To: Jan Schneider
> <jan at horde.org> Subject: Re: [gollem] Multiple hordeftp listsings possible?
> To: gollem at lists.horde.org
>
>> Zitat von "Michael J. Pelletier" <mjpelletier at mjpelletier.com>:
>>
>>> Hello,
>>>
>>> I would like to have multiple listings using hordeftp. However,
>>> when I make two
>>> hordeftp configurations it seems to break things. First, is it ok to have
>>> multiple hordeftp definitions?
>>
>> There is no such "hordeftp" configuration. There is an example FTP
>> configuration called "hordeftp". And of course you can have multiple FTP
>> configurations if you name them differently.
Jan.
--
Do you need professional PHP or Horde consulting?
http://horde.org/consulting.php
More information about the gollem
mailing list