Home « Server software «
Documentation: collections/index.php
collections/index.php - Use collections to extend the scope of your server to existing file heaps
A collection is defined by following parameters- a nick name that has to be unique (e.g., 'library')
- a label to be used as a title in pages browsing the collection
- a path prefix to related files into the local file system (e.g. '/usr/lib')
- an url prefix to be used to access files remotely (e.g. 'ftp://ftp.mydomain.com/library')
- an introduction to be used on collections index page
- a description to be used on one collection index page, before the list of folders and/or files
- a prefix to be used on each browsing page of the collection, before the list of folders and/or files
- a suffix to be used on each browsing page of the collection, after the list of folders and/or files
Folders and files in the collection are identified by some path information (e.g., 'mysoft/users-guide.pdf'). The actual folder or file is accessed locally by using the path prefix (e.g., '/usr/lib/mysoft/users-guide.pdf'). The URL for the file is built using the url prefix (e.g., 'ftp://ftp.mydomain.com/library/mysoft/users-guide.pdf').
If HTTP authentication credentials are provided, this script will also include protected collections.
This module uses following scripts:
- index.php the main index page for collections
- browse.php to browse one collection
This script is a reference file of this system.
Licence: GNU Lesser General Public License
Auteurs:
- Bernard Paques bernard.paques@bigfoot.com