Home « Server software «
Documentation: scripts/fetch.php
scripts/fetch.php - Download one or several scripts
This script is useful to copy one or several scripts from the reference store across the network.When a single script is required, it is returned directly with MIME type 'application/x-httpd-php'.
When several scripts are asked for, their content is returned at once, with one line to separate them. The first line is also the separator. MIME type is 'text/download'.
Accept following invocations:
- fetch.php/skins/skeleton/skin.php
- fetch.php?script=/skins/skeleton/skin.php
- fetch.php?script=/skins/skeleton/skin.php,/skins/skeleton/template.php
If following features are enabled, this script will use them:
- compression - using gzip
- cache - supported through ETag and Last-Modified, not mentioning the setting of Content-Length;
This script is a reference file of this system.
Licence: GNU Lesser General Public License
Auteurs:
- Bernard Paques bernard.paques@bigfoot.com