Download for PHP  R515 (beta)
Expand

Input document

.

Upload document:

Attach

Extension list »

See also DownloadCount.

Creates a downloadable attachment like attachment.wiki this one; optionally tracks download count.

Chain it with another formatter to get a specific look: hey.php PHPecho "Hey!";. Has block and inline forms.

multiline-1.xml (downloaded 953 times)
xml<?xml version="1.0"?>
<text>
  This is an example of <b>block</b>
  and <b>chained</b> attachment.
</text>

Parameters

hide
Hides actual content:  – useful for attaching binary data (that first needs to be read-in, for example, with Data);
no stats
Replaces download count with the MD5 hash:  – downloads are still tracked; so you can show it elsewhere: 1675;
mime
Sets MIME type for download; can be of form «XXX; charset=YYY» for text documents (e.g. «text/plain; charset=utf-8»);
compress
Name of PHP function to pass to ob_start; if used as a flag defaults to «ob_gzhandler»: .

Languages