Home « Server software «
Documentation: collections/browse.php
collections/browse.php - Browse a collection
This script lists directories and files available at some path of one collection.Most files are provided for download, while some extensions (e.g., video and audio files) are redirected to the streaming script.
If the directory contains some audio files, a link is added to download a playlist that includes all audio files.
If the directory contains some image files, a link is added to a slideshow includes all images.
Optionnally, this script also read internal information for some file types, in order to enhance the provided listing. This reading is based on the getid3() library, which is loaded if it is available.
You can provide additional information to surfers for each directory by adding
.header and .footer files in directories to be documented.
If present, these files will be included by YACS at top and bottom of the index page, respectively.Following files are never listed by YACS:
- files with names prefixed by '.' (like
.htaccess) - files starting with a '~'
- thumbs.db
- pspbrwse.jbf
For authentication on protected page this script use basic HTTP authentication. This means that the anonymous surfer will have either to use the regular login page, or to provide name and password on a per-request basis.
Accept following invocations:
- browse.php?path=<collection/path/to/browse>
- browse.php/collection/path/to/browse;
This script is a reference file of this system.
Voir aussi:
- collections/stream.php
- collections/play_audio.php
- collections/play_slideshow.php
- getID3() the PHP media file parser
Licence: GNU Lesser General Public License
Auteurs:
- Bernard Paques bernard.paques@bigfoot.com